示例#1
0
 public void Add <T>(T entity) where T : class
 {
     _dbContext.Add(entity);
 }
示例#2
0
 public void Add(WeatherForecastEntity weather)
 {
     weatherDbContext.Add(weather);
     weatherDbContext.SaveChanges();
 }