Exemplo n.º 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());
 }
Exemplo n.º 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());
 }