public ForeignKeyAttribute(Type uniqueQuery, string foreignKeyName) { this.uniqueQuery = Activator.CreateInstance(uniqueQuery, null) as IUniqueQuery; this.foreignKeyName = foreignKeyName; // this.FK = foreignKeyName; }
public UniqueAttribute(Type iQuery, string fieldNameSourceOfIdValue, bool ignoreEmptyString = false) { this.query = Activator.CreateInstance(iQuery, null) as IUniqueQuery; this.fieldNameSourceOfIdValue = fieldNameSourceOfIdValue; this.ignoreEmptyString = ignoreEmptyString; }
public ForeignKeyAttribute(Type uniqueQuery, string referencedTablePrimaryKeyName, bool allowNullOrZero = false) { this.uniqueQuery = Activator.CreateInstance(uniqueQuery, null) as IUniqueQuery; this.referencedTablePrimaryKeyName = referencedTablePrimaryKeyName; this.allowNullOrZero = allowNullOrZero; }