Exemplo n.º 1
0
        public SystemProfile Find(SystemProfileCategory category, SystemProfileKey key)
        {
            var dt = DBHelper.GetInstance(mContext).ExecuteDt(string.Format("select * from _systemprofile where _category='{0}' and _key='{1}'", category, key));

            if (dt == null || dt.Rows.Count == 0)
            {
                throw new FinanceException(FinanceResult.RECORD_NOT_EXIST);
            }

            var rsp = EntityConvertor <SystemProfile> .ToEntity(dt.Rows[0]);

            return(rsp);
        }