Is it possible to have two partial classes in different assemblies represent the same class?

前端 未结 9 1502
栀梦
栀梦 2020-11-27 03:56

I have a class called \'Article\' in a project called \'MyProject.Data\', which acts as the data layer for my web application.

I have a separate project called \'MyP

9条回答
  •  感动是毒
    2020-11-27 04:37

    I've had similar issues with this. I kept my partial classes in my Data project so in your case the 'MyProject.Data'. MetaDataClasses shouldn't go in your Admin project as you will create a circular references other wise.

    I added a new Class Lib project for my MetaDataClasses e.g. 'MyProject.MetaData' and then referenced this from my Data project

提交回复
热议问题