Ejemplo n.º 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);
        }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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)));
 }