private AreaDTO Map(tblArea tbl) { var dto = new AreaDTO { MasterId = tbl.id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Name = tbl.Name, Description = tbl.Description, RegionMasterId = tbl.Region }; return dto; }
/// <summary> /// Create a new tblArea 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="region">Initial value of the Region property.</param> /// <param name="iM_Status">Initial value of the IM_Status property.</param> public static tblArea CreatetblArea(global::System.Guid id, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Guid region, global::System.Int32 iM_Status) { tblArea tblArea = new tblArea(); tblArea.id = id; tblArea.IM_DateCreated = iM_DateCreated; tblArea.IM_DateLastUpdated = iM_DateLastUpdated; tblArea.Region = region; tblArea.IM_Status = iM_Status; return tblArea; }
/// <summary> /// Deprecated Method for adding a new object to the tblArea EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblArea(tblArea tblArea) { base.AddObject("tblArea", tblArea); }