예제 #1
0
 protected override City UpdateEntity(CoreContext entityContext, City entity)
 {
     return((from e in entityContext.Set <City>()
             where e.CityId == entity.CityId
             select e).FirstOrDefault());
 }
예제 #2
0
 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());
 }
예제 #4
0
 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));
 }
예제 #6
0
 protected override Language UpdateEntity(CoreContext entityContext, Language entity)
 {
     return((from e in entityContext.Set <Language>()
             where e.LanguageId == entity.LanguageId
             select e).FirstOrDefault());
 }
예제 #7
0
 protected override Language AddEntity(CoreContext entityContext, Language entity)
 {
     return(entityContext.Set <Language>().Add(entity));
 }
예제 #8
0
 protected override Group UpdateEntity(CoreContext entityContext, Group entity)
 {
     return((from e in entityContext.Set <Group>()
             where e.GroupId == entity.GroupId
             select e).FirstOrDefault());
 }
예제 #9
0
 protected override Group AddEntity(CoreContext entityContext, Group entity)
 {
     return(entityContext.Set <Group>().Add(entity));
 }