public virtual SysParameterDomain CreateSysParameterDomain() { SysParameterEntity entity = new SysParameterEntity(); entity.ParameterId = Guid.NewGuid().ToString(); return new SysParameterDomain(entity); }
//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; }
public SysParameterDomain(SysParameterEntity entity) : base(entity) { masterEntity = entity; }
/// <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); } }
/// <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); }
public virtual void UpdateSysParameterEntity(SysParameterEntity entity, DataAccessBroker broker) { DataAccess.Update(entity, broker); }
public virtual void InsertSysParameterEntity(SysParameterEntity entity, DataAccessBroker broker) { DataAccess.Insert(entity, broker); }
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; }
/// <summary> /// 构造函数 /// </summary> /// <param name="SecPageEntity"></param> public ParameterDomain(SysParameterEntity SysParameterEntity) : base(SysParameterEntity) { }