예제 #1
0
        public virtual SysParameterDomain CreateSysParameterDomain()
        {
            SysParameterEntity entity = new SysParameterEntity();
            entity.ParameterId = Guid.NewGuid().ToString();

            return new SysParameterDomain(entity);
        }
예제 #2
0
 //For GetEquivalent
 public virtual string GetSingleValueByParameterName(string parameterName)
 {
     SysParameterEntity entity = new SysParameterEntity();
     entity.ParameterName = parameterName;
     entity = DataAccess.SelectSingle<SysParameterEntity>(entity);
     if (entity == null)
         return string.Empty;
     else
         return entity.ParameterValue;
 }
예제 #3
0
 public SysParameterDomain(SysParameterEntity entity)
     : base(entity)
 {
     masterEntity = entity;
 }
예제 #4
0
 /// <summary>
 /// 根据parameterType和parameterName获取ParameterDomain
 /// </summary>
 /// <param name="parameterType"></param>
 /// <param name="parameterName"></param>
 /// <returns></returns>
 public virtual ParameterDomain GetParameterByParameterName(string parameterType, string parameterName)
 {
     SysParameterEntity SysParameterEntity = new SysParameterEntity();
     SysParameterEntity.ParameterType = parameterType;
     SysParameterEntity.ParameterName = parameterName;
     SysParameterEntity = DataAccess.SelectSingle<SysParameterEntity>(SysParameterEntity);
     if (SysParameterEntity == null)
     {
         return null;
     }
     else
     {
         return new ParameterDomain(SysParameterEntity);
     }
 }
예제 #5
0
 /// <summary>
 /// 创建初始领域对象
 /// </summary>
 /// <returns></returns>
 public virtual ParameterDomain CreateParameterDomain()
 {
     SysParameterEntity parameterEty = new SysParameterEntity();
     parameterEty.ParameterId = Guid.NewGuid().ToString();
     parameterEty.ParameterName = string.Empty;
     parameterEty.ParameterValue = string.Empty;
     parameterEty.ParameterOrder = 0;
     parameterEty.ParameterType = string.Empty;
     parameterEty.LastModifiedBy = string.Empty;
     parameterEty.LastModifiedTime = DateTime.Now;
     return new ParameterDomain(parameterEty);
 }
예제 #6
0
 public virtual void UpdateSysParameterEntity(SysParameterEntity entity, DataAccessBroker broker)
 {
     DataAccess.Update(entity, broker);
 }
예제 #7
0
 public virtual void InsertSysParameterEntity(SysParameterEntity entity, DataAccessBroker broker)
 {
     DataAccess.Insert(entity, broker);
 }
예제 #8
0
 public virtual SysParameterEntity GetEntityByTypeValue(string type, string value)
 {
     SysParameterEntity entity = new SysParameterEntity();
     entity.ParameterType = type;
     entity.ParameterValue = value;
     entity = DataAccess.SelectSingle<SysParameterEntity>(entity);
  
         return entity;
 }
예제 #9
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="SecPageEntity"></param>
 public ParameterDomain(SysParameterEntity SysParameterEntity)
     : base(SysParameterEntity)
 {
 }