public string GetAreaNamesBy(string areaCodes) { using (var dbContext = new DuPont_TestContext()) { var codes = areaCodes.Split('|'); string res = string.Empty; T_AREA area = null; foreach (var code in codes) { area = dbContext.T_AREA.FirstOrDefault(a => a.AID == code); res += string.Format("{0}|", area == null ? string.Empty : area.DisplayName); } res = res.Substring(0, res.Length - 1); return(res); } }
public int Update(T_AREA entity) { throw new NotImplementedException(); }
public int Insert(T_AREA entity) { throw new NotImplementedException(); }