ExtensionMethods..::..AddNewNoCommitEntity<(Of <(<'TEntity>)>)> Method
Adds a new entity but does not commit the changes. Use for entities whose primary key field is not an auto-increment type. Outputs all errors to the DbDataProcessor SqlErrorViewer.
Namespace:
RingSoft.DbLookup.EfCoreAssembly: RingSoft.DbLookup.EfCore (in RingSoft.DbLookup.EfCore.dll)
Syntax
public static bool AddNewNoCommitEntity<TEntity>( this DbContext context, DbSet<TEntity> dbSet, TEntity entity, string debugMessage, bool silent )
Type Parameters
- TEntity
- The type of the entity.
Parameters
- context
- Type: DbContext
The context.
- dbSet
- Type: DbSet<(Of <(<'TEntity>)>)>
The database set.
- entity
- Type: TEntity
The entity.
- debugMessage
- Type: String
The debug message.
- silent
- Type: Boolean
if set to true [silent].