private BankDTO Map(tblBank tbl)
 {
     var dto = new BankDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       Code = tbl.Code,
                       Description = tbl.Description
                   };
     return dto;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new tblBank object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="iM_DateCreated">Initial value of the IM_DateCreated property.</param>
 /// <param name="iM_DateLastUpdated">Initial value of the IM_DateLastUpdated property.</param>
 /// <param name="iM_Status">Initial value of the IM_Status property.</param>
 public static tblBank CreatetblBank(global::System.Guid id, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblBank tblBank = new tblBank();
     tblBank.Id = id;
     tblBank.IM_DateCreated = iM_DateCreated;
     tblBank.IM_DateLastUpdated = iM_DateLastUpdated;
     tblBank.IM_Status = iM_Status;
     return tblBank;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblBank EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblBank(tblBank tblBank)
 {
     base.AddObject("tblBank", tblBank);
 }