private CentreTypeDTO Map(tblCentreType tbl) { var dto = new CentreTypeDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Code = tbl.Code, Name = tbl.Name, Description = tbl.Description }; return dto; }
/// <summary> /// Create a new tblCentreType 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 tblCentreType CreatetblCentreType(global::System.Guid id, global::System.String name, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblCentreType tblCentreType = new tblCentreType(); tblCentreType.Id = id; tblCentreType.Name = name; tblCentreType.IM_DateCreated = iM_DateCreated; tblCentreType.IM_DateLastUpdated = iM_DateLastUpdated; tblCentreType.IM_Status = iM_Status; return tblCentreType; }
/// <summary> /// Deprecated Method for adding a new object to the tblCentreType EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblCentreType(tblCentreType tblCentreType) { base.AddObject("tblCentreType", tblCentreType); }