/// <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) { }
/// <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; }
/// <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) { }
/// <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; }