示例#1
0
        public async Task Add(T entity)
        {
            await Context.Set <T>().AddAsync(entity);

            await Context.SaveChangesAsync();
        }
示例#2
0
 public AsyncRepository(User_ProjectContext context)
 {
     Context = context;
     table   = context.Set <T>();
 }