Class Model<T>
Represents model with primary key.
Implements
System.Collections.Generic.IReadOnlyCollection<Model>
System.Collections.Generic.IEnumerable<Model>
System.Collections.IEnumerable
IEntity<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public abstract class Model<T> : Model, IDesignable, IModels, IReadOnlyCollection<Model>, IEnumerable<Model>, IEnumerable, IEntity<T>, IEntity where T : CandidateKey
Type Parameters
| Name | Description |
|---|---|
| T | The type of primary key. |
Constructors
| Name | Description |
|---|---|
| Model() | Initializes a new intance of Model<T> class. |
Properties
| Name | Description |
|---|---|
| PrimaryKey | Gets the primary key. |
Methods
| Name | Description |
|---|---|
| CreatePrimaryKey() | Creates the primary key. |
| GetDbPrimaryKeyDescription() | Gets the database primary key description. |
| GetDbPrimaryKeyName() | Gets the database primary key name. |
| Match(T) | Matches this model with specified primary key. |
| Match(Key<T>) | Matches this model with specified key projection. |
| Match(Model<T>) | Matches this model with specified model. |
| RegisterChildModel<TModel, TChildModel>(Expression<Func<TModel, TChildModel>>, Func<TChildModel, T>) | Registers a child model. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IEntity<T>.Model |