.NET reflection: how to get properties defined on partial class
问题 I use the .NET Entity Framework. I want to copy properties from one EntityObject to another. But System.Type.GetProperties() does not seem to return the properties defined on the partial class. Code: In XXX.edmx/ XXX.Designer.cs generated by Visual Studio, I have class MyTable: public partial class MyTable: EntityObject{..} I want to add some properties to MyTable class, so I add file XXX.Manual.cs: public partial class MyTable: EntityObject{ public string myProp{get;set;} } But myTableObj