/// <summary> /// Create a new DonateRecord object. /// </summary> /// <param name="recordId">Initial value of the RecordId property.</param> public static DonateRecord CreateDonateRecord(global::System.Int32 recordId) { DonateRecord donateRecord = new DonateRecord(); donateRecord.RecordId = recordId; return donateRecord; }
/// <summary> /// Deprecated Method for adding a new object to the DonateRecords EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDonateRecords(DonateRecord donateRecord) { base.AddObject("DonateRecords", donateRecord); }
public bool Add(DonateRecord model) { IDonateRecordRepository iDonateRecRepos = IoCContext.Container.Resolve<IDonateRecordRepository>(); return iDonateRecRepos.Add(model, false) >0; }