public bool CheckExist(string userName)
 {
     return(Context.Set <ApplicationUserIdentity>().Any(u => u.UserName == userName));;
 }
 public ContextRepository(Context context)
 {
     Context = context;
     dataSet = context.Set <TEntity>();
 }
Example #3
0
 public T GetById(int id)
 {
     return(context.Set <T>().Find(id));
 }