Show / Hide Table of Contents

Class Model<T>

Represents model with primary key.

Inheritance
System.Object
AddonBag
ModelMember
Model
Model<T>
Implements
IModels
System.Collections.Generic.IReadOnlyCollection<Model>
System.Collections.Generic.IEnumerable<Model>
System.Collections.IEnumerable
IEntity<T>
IEntity
Inherited Members
Model.RegisterColumn<TModel, TColumn>(Expression<Func<TModel, TColumn>>)
Model.RegisterColumn<TModel, TColumn>(Expression<Func<TModel, TColumn>>, Mounter<TColumn>)
Model.RegisterColumnList<TModel, T>(Expression<Func<TModel, ColumnList<T>>>)
Model.RegisterChildModel<TModel, TChildModel>(Expression<Func<TModel, TChildModel>>, Func<TModel, TChildModel>)
Model.RegisterLocalColumn<TModel, T>(Expression<Func<TModel, LocalColumn<T>>>)
Model.LocalColumns
Model.CreateLocalColumn<T>()
Model.RegisterProjection<TModel, TProjection>(Expression<Func<TModel, TProjection>>)
Model.Projections
Model.IsInitialized
Model.EnsureInitialized()
Model.OnConstructing()
Model.OnInitializing()
Model.OnChildModelsMounted()
Model.OnChildDataSetsCreated()
Model.OnInitialized()
Model.Columns
Model.ChildModels
Model.Validators
Model.Validate(DataRow)
Model.DataSource
Model.DesignMode
Model.DataSet
Model.IModels.Contains(Model)
Model.IReadOnlyCollection<Model>.Count
Model.IEnumerable<Model>.GetEnumerator()
Model.IEnumerable.GetEnumerator()
Model.IModels.IsSealed
Model.IModels.Seal()
Model.IModels.Add(Model)
Model.IModels.Remove(Model)
Model.IModels.Clear()
Model.DbAlias
Model.GetIdentity(Boolean)
Model.AddDbIndex(String, String, Boolean, Boolean, Boolean, Boolean, ColumnSort[])
Model.AddDbUniqueConstraint(String, String, Boolean, ColumnSort[])
Model.AddDbCheckConstraint(String, String, _Boolean)
Model.ToString()
Model.CreateDataSet<T>(_DataSet<T>, Int32)
Model.Constructing
Model.Initializing
Model.ChildModelsMounted
Model.ChildDataSetsCreated
Model.Initialized
Model.DataRowInserting
Model.BeforeDataRowInserted
Model.AfterDataRowInserted
Model.DataRowRemoving
Model.DataRowRemoved
Model.ValueChanged
Model.OnDataRowInserting(DataRowEventArgs)
Model.OnBeforeDataRowInserted(DataRowEventArgs)
Model.OnAfterDataRowInserted(DataRowEventArgs)
Model.OnDataRowRemoving(DataRowEventArgs)
Model.OnDataRowRemoved(DataRowRemovedEventArgs)
Model.OnValueChanged(ValueChangedEventArgs)
Model.DataSetContainer
Model.IEntity.Model
Model.GetName()
Model.GetColumns()
Model.GetLocalColumns()
Model.GetColumnLists()
Model.GetChildModels()
Model.GetOrdinal()
Model.GetDataSource()
Model.GetDataSet()
Model.GetDepth()
ModelMember.GetParent()
ModelMember.VerifyDesignMode()
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

Extension Methods

Extensions.Match<T>(IEntity<T>, T)
Extensions.Match<T>(IEntity<T>, IEntity<T>)
Models.Except(IModels, IModels)
Models.Intersect(IModels, IModels)
Models.ContainsAny(IModels, IModels)
Models.IsProperSubsetOf(IModels, IModels)
Models.IsProperSupersetOf(IModels, IModels)
Models.IsSubsetOf(IModels, IModels)
Models.IsSupersetOf(IModels, IModels)
Models.Overlaps(IModels, IModels)
Models.SetEquals(IModels, IModels)
Models.SymmetricExcept(IModels, IModels)
Models.Union(IModels, IModels)
AddonBagExtensions.GetAddons<T>(AddonBag)
AddonBagExtensions.GetAddon<T>(AddonBag)
AddonBagExtensions.GetAddon(AddonBag, Object)
AddonBagExtensions.Add(AddonBag, IAddon)
AddonBagExtensions.AddOrUpdate(AddonBag, IAddon)
AddonBagExtensions.ContainsAddon(AddonBag, Object)
AddonBagExtensions.RemoveAddon(AddonBag, Object)
ModelExtensions.GetDbAlias(Model)
ModelExtensions.AddSystemColumn(Model, Column, String, Action<Column>)
ModelExtensions.GetDbTableClause(Model)
ModelExtensions.GetTableRowIdColumn(Model)
ModelExtensions.GetInsertableColumns(Model)
ModelExtensions.GetUpdatableColumns(Model)
ModelExtensions.GetDbTableName(Model)
ModelExtensions.GetDbTableDescription(Model)
ModelExtensions.IsIdentitySuspended(Model)
ModelExtensions.SuspendIdentity(Model)
ModelExtensions.ResumeIdentity(Model)
ModelExtensions.GetParentRelationship(Model)
ModelExtensions.GetDataSource(Model)
BindingFactory.BindToCheckBox(Model)
BindingFactory.BindTo<T>(Model)
BindingFactory.BindToValidationErrorsControl(Model)
BindingFactory.BindToTextBlock(Model, String)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest