Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public int Update(T_AREA entity)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public int Insert(T_AREA entity)
 {
     throw new NotImplementedException();
 }