Ejemplo n.º 1
0
        //public static void Delete(Guid ID)
        //{
        //    Functions.DeleteItem(TableName, ID);
        //}

        public static MEMBER GetByEmailAndPassword(string email, string password)
        {
            List <WHERE> where = new List <WHERE>();
            where.Add(new WHERE("EMAIL", "=", email, null));
            where.Add(new WHERE("PASSWORD", "=", password, null));
            return(Functions.ConvertToEntity <MEMBER>(Functions.GetByPropertyValue(TableName, where)));
        }
Ejemplo n.º 2
0
        public static List <MEMBER> GetSearchList(string name)
        {
            List <WHERE> where = new List <WHERE>();

            if (!string.IsNullOrEmpty(name))
            {
                where.Add(new WHERE("NAME", "LIKE", "%" + name.Trim().Replace(" ", "%") + "%"));
            }
            return(Functions.GetByPropertyValue(TableName, where).ConvertToList <MEMBER>());
        }
Ejemplo n.º 3
0
 public static List <MAIL> GetAll()
 {
     List <WHERE> where = new List <WHERE>();
     return(Functions.GetByPropertyValue(TableName, where).ConvertToList <MAIL>());
 }
Ejemplo n.º 4
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.º 5
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.º 6
0
 public static List <BLOG> GetTitleList(string URLSEO)
 {
     List <WHERE> where = new List <WHERE>();
     where.Add(new WHERE("URLSEO", "=", URLSEO, null));
     return(Functions.GetByPropertyValue(TableName, where).ConvertToList <BLOG>());
 }
Ejemplo n.º 7
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.º 8
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.º 9
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)));
 }