コード例 #1
0
 private RegionDTO Map(tblRegion tbl)
 {
     var dto = new RegionDTO
                   {
                       MasterId = tbl.id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       Description = tbl.Description,
                       CountryMasterId = tbl.Country
                   };
     return dto;
 }
コード例 #2
0
 /// <summary>
 /// Create a new tblRegion 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="country">Initial value of the Country property.</param>
 /// <param name="iM_Status">Initial value of the IM_Status property.</param>
 public static tblRegion CreatetblRegion(global::System.Guid id, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Guid country, global::System.Int32 iM_Status)
 {
     tblRegion tblRegion = new tblRegion();
     tblRegion.id = id;
     tblRegion.IM_DateCreated = iM_DateCreated;
     tblRegion.IM_DateLastUpdated = iM_DateLastUpdated;
     tblRegion.Country = country;
     tblRegion.IM_Status = iM_Status;
     return tblRegion;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblRegion EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblRegion(tblRegion tblRegion)
 {
     base.AddObject("tblRegion", tblRegion);
 }