Exemple #1
0
        //public static void Delete(Guid ID)
        //{
        //    Functions.DeleteItem(TableName, ID);
        //}

        public static string GetValueByCode(string code)
        {
            List <WHERE> where = new List <WHERE>();
            where.Add(new WHERE("CODE", "=", code, null));
            return(Functions.ConvertToEntity <PARAMETER>(Functions.GetByPropertyValue(TableName, where)).VALUE);
        }
Exemple #2
0
 public static MAIL Get(int ID)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("ID", "=", ID, null));
     return(Functions.ConvertToEntity <MAIL>(Functions.GetByPropertyValue(TableName, where)));
 }
Exemple #3
0
 public static BLOG GetTitle(string URLSEO)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("URLSEO", "=", URLSEO, null));
     return(Functions.ConvertToEntity <BLOG>(Functions.GetByPropertyValue(TableName, where)));
 }
Exemple #4
0
 public static BLOG GetBySort(int sort)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("SORT", "=", sort, null));
     return(Functions.ConvertToEntity <BLOG>(Functions.GetByPropertyValue(TableName, where)));
 }
Exemple #5
0
 public static MEMBER GetByID(Guid memberid)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("ID", "=", memberid, null));
     return(Functions.ConvertToEntity <MEMBER>(Functions.GetByPropertyValue(TableName, where)));
 }
Exemple #6
0
 public static MEMBER GetByPasswordResetCode(string passwordcode)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("PASSWORDRESETCODE", "=", passwordcode, null));
     return(Functions.ConvertToEntity <MEMBER>(Functions.GetByPropertyValue(TableName, where)));
 }
Exemple #7
0
 public static MEMBER GetByEmail(string email)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("EMAIL", "=", email, null));
     return(Functions.ConvertToEntity <MEMBER>(Functions.GetByPropertyValue(TableName, where)));
 }