Exemplo n.º 1
0
        public SYS_BUSINESSDATADETAIL AddBusinessDataDetail(int REF_BUSINESSDATA_ID, int REF_METADATA_ID, int PARENTID)
        {
            SYS_BUSINESSDATADETAIL result = new SYS_BUSINESSDATADETAIL();

            result.ID = ValueOperator.CreatePk("SYS_BUSINESSDATADETAIL");
            result.REF_BUSINESSDATA_ID = REF_BUSINESSDATA_ID;
            result.REF_METADATA_ID     = REF_METADATA_ID;
            result.PARENTID            = PARENTID;

            using (ORMHandler orm = Zxl.Data.DatabaseManager.ORMHandler)
            {
                orm.Save(result);
            }
            return(result);
        }
Exemplo n.º 2
0
        public List <SYS_MESSAGE> ReadMsg(string MsgId)
        {
            SYS_MESSAGE msg = null;

            List <SYS_MESSAGE> result = null;

            using (ORMHandler orm = Zxl.Data.DatabaseManager.ORMHandler)
            {
                msg       = orm.Init <SYS_MESSAGE>("where ID=" + MsgId);
                msg.STATE = 1;
                orm.Save(msg);

                result = GetNoReadMsgs(msg.RECVUSERID + "");
            }
            return(result);
        }
Exemplo n.º 3
0
        public ORUP_USER modifyUserInfo(string userId, string name, string value)
        {
            ORUP_USER user = null;

            using (ORMHandler orm = Zxl.Data.DatabaseManager.ORMHandler)
            {
                user = orm.Init <ORUP_USER>("where ID='" + userId + "'");
                if (name == "MOBILE")
                {
                    user.MOBILE = value;
                }
                if (name == "PHONE")
                {
                    user.PHONE = value;
                }
                if (name == "EMAIL")
                {
                    user.EMAIL = value;
                }
                orm.Save(user);
            }
            return(user);
        }
Exemplo n.º 4
0
 public virtual void Save(ORMHandler orm)
 {
     orm.Save(this);
 }