Hi guys,
I seem to be having trouble splitting a namespace across projects.
I have a DatabaseAccess project which has a folder called SCS (Some Crazy System) which provides data access to the database for SCS. Now this SCS has entity framework (.edmx) generated entities. I would like to extend these entities in my BusinessModel project. However I don't seem to be able to do so. below is my example. I am creating a partial class and also creating a namespace with the same name as the namespace in my actual DatabaseAccess project:
namespace DatabaseAccess.SCS{
public partial SomeEntity{
public void DoSomething(){
var x = this.GeneratedField;
}
}
}
Doing the above doesn't work. It complains that GeneratedField is not part of the SomeEntity class even though it is. If i pop open the SCS.Designer for the edmx, SomeEntity indeed does have a definition for the GeneratedField and SomeEntity is part of the DatabaseAccess.SCS namespace. What gives?