修复此错误:-Error 1在“ProjectManagementTask.Models.TaskMaster”类型的声明中缺少部分修饰符;存在这种类型的另一部分声明 [英] fix this error:-Error 1 Missing partial modifier on declaration of type 'ProjectManagementTask.Models.TaskMaster'; another partial declaration of this type exist

查看:77
本文介绍了修复此错误:-Error 1在“ProjectManagementTask.Models.TaskMaster”类型的声明中缺少部分修饰符;存在这种类型的另一部分声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码关注



My Code following

namespace ProjectManagementTask.Models
{
    public class TaskMaster
    {
        public int TaskID { get; set; }
        public int UserID { get; set; }
        public string TaskName { get; set; }
        public string TaskDesc { get; set; }
        public int ScriptID { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public int TargatedDays { get; set; }

    }


}

推荐答案

在你的某个地方项目有

公共PARTIAL类TaskMaster



这就是为什么这个实例坚持偏爱。解决方案是

a)重命名类(或原始的分类)

b)查找原始文件并将其属性添加到其中

c)在这个TaskMaster中添加部分关键字

d)惯性,我没有更多的解决方案:)



如果这有帮助请花点时间接受解决方案。谢谢。
Somewhere in your project there is
public PARTIAL class TaskMaster

That is why this instance insist on being partial. The solution is
a) rename the class (or the original partial class)
b) look for the original and add your properties into it
c) add partial keyword in this TaskMaster
d) inertia, I don't have any more solutions :)

If this helps please take time to accept the solution. Thank you.


这篇关于修复此错误:-Error 1在“ProjectManagementTask.Models.TaskMaster”类型的声明中缺少部分修饰符;存在这种类型的另一部分声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆