public void InsertRange <TModel>(IEnumerable <TModel> models) where TModel : BaseModel { foreach (TModel model in models) { model.Id = 0; } Context.AddRange(models); }
public void InsertRange <TModel>(IEnumerable <TModel> models) where TModel : BaseModel { Context.AddRange(models); }