예제 #1
0
파일: Model1.cs 프로젝트: endlessido/MEDIA
 /// <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;
 }
예제 #2
0
파일: Model1.cs 프로젝트: endlessido/MEDIA
 /// <summary>
 /// Deprecated Method for adding a new object to the DonateRecords EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDonateRecords(DonateRecord donateRecord)
 {
     base.AddObject("DonateRecords", donateRecord);
 }
예제 #3
0
 public bool Add(DonateRecord model)
 {
     IDonateRecordRepository iDonateRecRepos = IoCContext.Container.Resolve<IDonateRecordRepository>();
     return iDonateRecRepos.Add(model, false) >0;
 }