I have the next code for two classes:
public class Object
{
public int ObjectID { get; set; }
public int Object2ID { get; set; }
public virtual Object2 Object2 { get; set; }
}
public class Object2
{
public int Object2ID { get; set; }
public virtual ICollection<Object> Objects { get; set; }
}
I know that with Entity Framework, this will create a one-to-many relationship, but what I want to know, is how to transform this to a zero-to-many relationship.
I'm new to Entity Framework and I couldn't find any direct answer around.
∞
as it is a special character and some systems may not like the Unicode. Normally you would express it as0..*
and that is what you will see in most documentation refrences. – Swift