Beispiel #1
0
 public static TEntity EnsureFirst <TEntity>(this DbSet <TEntity> @this, EnsureCondition <TEntity> condition, Action <EnsureOptions <TEntity> > initOptions)
     where TEntity : class, new()
 {
     return(EnsureMany(@this, new[] { condition }, initOptions).First());
 }
Beispiel #2
0
 public static TEntity EnsureFirst <TEntity>(this DbSet <TEntity> @this, EnsureCondition <TEntity> condition)
     where TEntity : class, new()
 {
     return(EnsureMany(@this, new[] { condition }, null).First());
 }