protected override City UpdateEntity(CoreContext entityContext, City entity) { return((from e in entityContext.Set <City>() where e.CityId == entity.CityId select e).FirstOrDefault()); }
protected override IEnumerable <City> GetEntities(CoreContext entityContext) { return(from e in entityContext.Set <City>() select e); }
protected override MenuRole UpdateEntity(CoreContext entityContext, MenuRole entity) { return((from e in entityContext.Set <MenuRole>() where e.MenuRoleId == entity.MenuRoleId select e).FirstOrDefault()); }
protected override City AddEntity(CoreContext entityContext, City entity) { return(entityContext.Set <City>().Add(entity)); }
protected override MenuRole AddEntity(CoreContext entityContext, MenuRole entity) { return(entityContext.Set <MenuRole>().Add(entity)); }
protected override Language UpdateEntity(CoreContext entityContext, Language entity) { return((from e in entityContext.Set <Language>() where e.LanguageId == entity.LanguageId select e).FirstOrDefault()); }
protected override Language AddEntity(CoreContext entityContext, Language entity) { return(entityContext.Set <Language>().Add(entity)); }
protected override Group UpdateEntity(CoreContext entityContext, Group entity) { return((from e in entityContext.Set <Group>() where e.GroupId == entity.GroupId select e).FirstOrDefault()); }
protected override Group AddEntity(CoreContext entityContext, Group entity) { return(entityContext.Set <Group>().Add(entity)); }