Пример #1
0
 /// <summary>
 ///     Initialises a new <see cref="LocalModel{TModel, TId}" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 /// <param name="record">
 ///     The data record which is encapsulated by the business model.
 /// </param>
 internal LocalModel(LocalProvider provider, TRecord record) : base(provider, record)
 {
 }
Пример #2
0
 /// <summary>
 ///     Initialises a new <see cref="LocalModel{TModel}" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 /// <param name="record">
 ///     The data record which is encapsulated by the business model.
 /// </param>
 internal LocalModel(LocalProvider provider, TRecord record) : base(provider)
 {
     this.ModifiedData = record.Clone();
     this.OriginalData = record.Clone();
     _isPersisted      = true;
 }
Пример #3
0
 /// <summary>
 ///     Initialises a new <see cref="LocalModel{TModel, TId}" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 internal LocalModel(LocalProvider provider) : base(provider)
 {
 }
Пример #4
0
 /// <summary>
 ///     Initialises a new <see cref="LocalModel" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 internal LocalModel(LocalProvider provider)
 {
     this.Provider = provider;
 }