public virtual PropertyMap CreatePropertyMap(string memberName, string columnName, PropertyInfo[] accessors) { var item = new PropertyMap(); item.MemberName = memberName; item.ColumnName = columnName; item.Accessors = accessors; item.Options = ColumnOptions.Insert | ColumnOptions.Update; if (memberName.Equals(_createUserMember, StringComparison.InvariantCultureIgnoreCase)) item.Options |= ColumnOptions.CreateUser; if (memberName.Equals(_createDateMember, StringComparison.InvariantCultureIgnoreCase)) item.Options |= ColumnOptions.CreateDate; if (memberName.Equals(_modifyUserMember, StringComparison.InvariantCultureIgnoreCase)) item.Options |= ColumnOptions.ModifyUser; if (memberName.Equals(_modifyDateMember, StringComparison.InvariantCultureIgnoreCase)) item.Options |= ColumnOptions.ModifyDate; if (memberName.Equals(_softDeleteMember, StringComparison.InvariantCultureIgnoreCase)) item.Options |= ColumnOptions.SoftDelete; return item; }
public PropertyConfigurator(PropertyMap mapping) { _mapping = mapping; }