/// <summary> /// 从数据行读取 /// </summary> /// <param name="dataRow">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { GetFromExpand(dr); UserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldUserId]); FullName = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldFullName]); Salary = BaseBusinessLogic.ConvertToNullableDecimal(dr[UserByGUIDEntity.FieldSalary]); Age = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAge]); Birthday = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldBirthday]); Photo = BaseBusinessLogic.ConvertToByte(dr[UserByGUIDEntity.FieldPhoto]); AllowEdit = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAllowEdit]); AllowDelete = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAllowDelete]); Enabled = BaseBusinessLogic.ConvertToInt(dr[UserByGUIDEntity.FieldEnabled]); DeletionStateCode = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldDeletionStateCode]); SortCode = BaseBusinessLogic.ConvertToInt(dr[UserByGUIDEntity.FieldSortCode]); Description = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldDescription]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldModifiedBy]); return(this); }