private ContactTypeDTO Map(tblContactType tbl)
 {
     var dto = new ContactTypeDTO
                   {
                       MasterId = tbl.id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       Code = tbl.Code,
                       Description = tbl.Description
                   };
     return dto;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblContactType EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblContactType(tblContactType tblContactType)
 {
     base.AddObject("tblContactType", tblContactType);
 }
Example #3
0
 /// <summary>
 /// Create a new tblContactType object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description 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 tblContactType CreatetblContactType(global::System.Guid id, global::System.String name, global::System.String description, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblContactType tblContactType = new tblContactType();
     tblContactType.id = id;
     tblContactType.Name = name;
     tblContactType.Description = description;
     tblContactType.IM_DateCreated = iM_DateCreated;
     tblContactType.IM_DateLastUpdated = iM_DateLastUpdated;
     tblContactType.IM_Status = iM_Status;
     return tblContactType;
 }