public void Add <T>(T entity) where T : class
 {
     _context.Add(entity);
 }
示例#2
0
 public void Add <T>(T entity) where T : class
 {
     _context.Add(entity); // Saved in memory not in db yet
 }
 public void Add <T>(T entity) where T : class
 {
     // when we add into our context, this is going to be saved in memory until we save our changes in our DB
     _context.Add(entity);
 }
示例#4
0
 public void Add <T>(T entity) where T : class
 {
     context.Add(entity);//Async kullanılmamasının sebebi eklediten sonra herhangi bir query yapmamız.
 }
示例#5
0
 public void Add <T> (T entity) where T : class
 {
     // In memory. Save all changes will persist the entity.
     _context.Add(entity);
 }
示例#6
0
 public void Add(T entity)
 {
     _context.Add(entity);
 }
示例#7
0
 public void Add <T>(T entity) where T : class
 {
     //throw new System.NotImplementedException();
     _context.Add(entity);
 }
示例#8
0
 public void Add <T>(T entity) where T : class
 {
     _db.Add(entity);
 }
 public void Add <T>(T entity) where T : class
 {
     // _dataContext.Add<T>(entity);
     _dataContext.Add(entity);
 }
示例#10
0
 public void Add <T>(T entity) where T : class
 {
     _context.Add(entity); //This only Add in memory, not db yet.
 }