private CentreDTO Map(tblCentre tbl)
 {
     var dto = new CentreDTO
     {
         MasterId = tbl.Id,
         DateCreated = tbl.IM_DateCreated,
         DateLastUpdated = tbl.IM_DateLastUpdated,
         StatusId = tbl.IM_Status,
         Code = tbl.Code,
         Name = tbl.Name,
         Description = tbl.Description,
         CenterTypeId = tbl.CentreTypeId,
         HubId = tbl.HubId,
         RouteId = tbl.RouteId ?? Guid.Empty
     };
     return dto;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new tblCentre object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="centreTypeId">Initial value of the CentreTypeId property.</param>
 /// <param name="hubId">Initial value of the HubId property.</param>
 /// <param name="name">Initial value of the Name 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 tblCentre CreatetblCentre(global::System.Guid id, global::System.Guid centreTypeId, global::System.Guid hubId, global::System.String name, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblCentre tblCentre = new tblCentre();
     tblCentre.Id = id;
     tblCentre.CentreTypeId = centreTypeId;
     tblCentre.HubId = hubId;
     tblCentre.Name = name;
     tblCentre.IM_DateCreated = iM_DateCreated;
     tblCentre.IM_DateLastUpdated = iM_DateLastUpdated;
     tblCentre.IM_Status = iM_Status;
     return tblCentre;
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblCentre EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblCentre(tblCentre tblCentre)
 {
     base.AddObject("tblCentre", tblCentre);
 }