PeanutButter
|
Abstract class to require uniqueness on a property or field by name. More...
Public Member Functions | |||
RequireUnique (string propertyName) | |||
override void | Init (Type entityType) | ||
override in your implementation if you'd like to late-initialize relevant property names
| |||
override void | SetRandomValue (PropertyOrField propInfo, ref object target) | ||
Public Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute | |||
void | SetRandomValue (PropertyOrField propInfo, ref object target) | ||
Actually invoked when attempting to set a random value on the named property. |
Properties | |
Type | PropertyType [get, set] |
The type of the property which is required to be unique, should be set by inheriting class. | |
Properties inherited from PeanutButter.RandomGenerators.RandomizerAttribute | |
string[] | PropertyNames [get] |
The name of the property to which this randomizer attribute pertains. |
Additional Inherited Members | |
Protected Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute | |
RandomizerAttribute (string propertyName, params string[] otherPropertyNames) | |
Constructs this attribute to act against one or more properties by name. |
Abstract class to require uniqueness on a property or field by name.
|
virtual |
override in your implementation if you'd like to late-initialize relevant property names
type |
Reimplemented from PeanutButter.RandomGenerators.RandomizerAttribute.
Reimplemented in PeanutButter.RandomGenerators.RequireUniqueId.