Esempio n. 1
0
        public List <string> GetName(Bussiness.eMethod method)
        {
            List <string> lst = new List <string>();

            switch (method)
            {
            case Bussiness.eMethod.GetAll:
                lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}");
                break;

            case Bussiness.eMethod.Insert:
                lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}");
                break;

            case Bussiness.eMethod.Delete:
                lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}");
                break;

            case Bussiness.eMethod.Update:
                lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}");
                break;

            case Bussiness.eMethod.GetBy:
                var ls = LstInfoTable.Where(q => q.IsPK).ToList();
                if (ls.Count > 0)
                {
                    foreach (var item in ls)
                    {
                        lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}{item.Name}");
                    }
                }
                break;

            //case Bussiness.eMethod.DeleteBy:
            //    var ls2 = LstInfoTable.Where(q => q.isKey).ToList();
            //    if (ls2.Count > 1)
            //    {
            //        foreach (var item in ls2)
            //        {
            //            lst.Add($"{Setting.GetNameProc(NameTable)}_{method.ToString()}{item.Name}");
            //        }
            //    }
            //    break;
            default:
                break;
            }
            return(lst);
        }
Esempio n. 2
0
 public override string GetNameClass()
 {
     return(Setting.GetNameProc(NameTable));
 }