SqlTable<TEntity>.Add Method
Recursively executes INSERT commands for the specified entity and all its one-to-one and one-to-many associations.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public void Add(
TEntity entity
)
Parameters
entity
Type: TEntity
The object whose INSERT command is to be executed. This parameter is named entity for consistency with the other CRUD methods, but in this case it doesn’t need to be an actual entity, which means it doesn’t need to have a primary key.