/// <summary> /// Specifies the field name that uniquely identifies each object /// within the collection. Typically, this is the field name of an identity or auto /// increment field in which case the bAutoIncrements value should be set to true. /// </summary> public DistinctFieldAttribute(string strDistinctFieldName, bool bAutoIncrements) { if (String.IsNullOrEmpty(strDistinctFieldName)) throw new ArgumentNullException(); pstrDistinctFieldName = strDistinctFieldName; if (bAutoIncrements) peFieldValueAutomaticAssignment = SQL.FieldValueAutoAssignmentType.AutoIncrement; }
/// <summary> /// Specifies the field name that uniquely identifies each object /// within the collection. Typically, this is the field name of an identity or auto /// increment field in which case the bAutoIncrements value should be set to true. /// </summary> public DistinctFieldAttribute(string strDistinctFieldName, SQL.FieldValueAutoAssignmentType eAutomaticAssignment) { if (String.IsNullOrEmpty(strDistinctFieldName)) throw new ArgumentNullException(); pstrDistinctFieldName = strDistinctFieldName; peFieldValueAutomaticAssignment = eAutomaticAssignment; }