private TerritoryDTO Map(tblTerritory tbl)
        {
            var dto = new TerritoryDTO();
            dto.MasterId = tbl.id;
            dto.DateCreated = tbl.IM_DateCreated;
            dto.DateLastUpdated = tbl.IM_DateLastUpdated;
            dto.StatusId = tbl.IM_Status;
            dto.Name = tbl.Name;

            return dto;
        }
Пример #2
0
 /// <summary>
 /// Create a new tblTerritory object.
 /// </summary>
 /// <param name="id">Initial value of the id 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 tblTerritory CreatetblTerritory(global::System.Guid id, global::System.String name, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblTerritory tblTerritory = new tblTerritory();
     tblTerritory.id = id;
     tblTerritory.Name = name;
     tblTerritory.IM_DateCreated = iM_DateCreated;
     tblTerritory.IM_DateLastUpdated = iM_DateLastUpdated;
     tblTerritory.IM_Status = iM_Status;
     return tblTerritory;
 }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblTerritory EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblTerritory(tblTerritory tblTerritory)
 {
     base.AddObject("tblTerritory", tblTerritory);
 }