public void Add <T>(T entity) where T : class { _context.Add(entity); }
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); }
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. }
public void Add <T> (T entity) where T : class { // In memory. Save all changes will persist the entity. _context.Add(entity); }
public void Add(T entity) { _context.Add(entity); }
public void Add <T>(T entity) where T : class { //throw new System.NotImplementedException(); _context.Add(entity); }
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); }
public void Add <T>(T entity) where T : class { _context.Add(entity); //This only Add in memory, not db yet. }