Exemplo n.º 1
0
 public K2UserPO GetK2User(int loginID)
 {
     var edm = new DianpingK2SQLUMContext();
     var loginIdStr = loginID.ToString();
     return edm.K2User.
         Where(u => u.UserName == loginIdStr).FirstOrDefault<K2UserPO>();
 }
Exemplo n.º 2
0
 public K2CityPO GetK2CityByCityID(int cityID)
 {
     var edm = new DianpingK2SQLUMContext();
     return edm.K2City.Where<K2CityPO>(c=>c.CityID == cityID).FirstOrDefault<K2CityPO>();
 }