When using a reference class with only one reference in the context of entities, the unit framework is a bunch of other entity references Pulling in for its nefarious uses, and it is causing problems for me (I am getting an error like this institution and can not use such a table as an entity and because they are the same Type hierarchy Which is nothing. ") My question no is about this specific error, but why is the unit framework pulling in all organizations outside of my context.
I have One unit framework is the DbContext sub-class in which only some references are as follows:
Public Sector Fruit Contact: DBcinTex {Public DBSet and LT; Apple> Apple (Received) Set;} Public DBSet & lt; Orange & Gt; oranges {get; set;}}
I am using Linqpad to query this reference, and when I expand the frightent node, it shows me That is expected in this "apple" and "oranges", but then it also shows me "beans" and "asparagai" which are not in the fruit contact, and the type of apple or orange is not in the hierarchy. Why is EF pulling in these institutions? Now it may be the case that I am referring these beans and non-government organizations to a repository or in some things, but will I have concerns about EF? Is there any way to tell the EF for any particular reference, what exactly should it really be in context and should any organization be carried out where it is taking away from somewhere else?
Edit 1 : Here is the orange class:
[table ("food")] Public orange {public Int32 Juiciness {get ; Set; }}
There is an Asparagus class which is being pulled for any reason, but why? It shares the same table in the form of orange, but why is it out of context and why the EF should be taken care of after being not nested in the same type hierarchy in the form of orange? [Table ("food")] Asparagus of public class {public string SomeVegetableField {get; Set; }}
No comments:
Post a Comment