add_has_many


Description:

protected void add_has_many (string property_name, Type many_of, string? this_column, string? foreign_column)

Add a has_many relationship. A has_many relationship has zero or more related records in another table. Most implementations would do a separate select.

Parameters:

property_name Property name to bind to.
many_of Type of the foreign entity (ex: typeof(NewEntity) ).
this_column Identifying column name in this entity
foreign_column Identifying column name in the target entity. Will default to the same name in the target.