c# ef core no – no behaviours

  • Do not use ienumerable instead of iqueryable while return data from dbcontext dbset
  • do not use iqueryable.tolist().where() or (await iqueryable.toListAsync()).where()
  • Do not use update and savechanges in repo, save changes should be called from controller or after completing all insert and update tasks
  • use basemode package to inherit and use generic crud operation data