private CompetitorDTO Map(tblCompetitor tbl)
 {
     var dto = new CompetitorDTO
                   {
                       MasterId = tbl.id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       PhysicalAddress = tbl.PhysicalAddress,
                       PostalAddress = tbl.PostaAddress,
                       Telephone = tbl.Telephone,
                       ContactPerson = tbl.ContactPerson,
                       City = tbl.City,
                       Longitude = tbl.Longitude,
                       Lattitude = tbl.Lattitude
                   };
     return dto;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblCompetitor EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblCompetitor(tblCompetitor tblCompetitor)
 {
     base.AddObject("tblCompetitor", tblCompetitor);
 }
예제 #3
0
 /// <summary>
 /// Create a new tblCompetitor 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 tblCompetitor CreatetblCompetitor(global::System.Guid id, global::System.String name, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblCompetitor tblCompetitor = new tblCompetitor();
     tblCompetitor.id = id;
     tblCompetitor.Name = name;
     tblCompetitor.IM_DateCreated = iM_DateCreated;
     tblCompetitor.IM_DateLastUpdated = iM_DateLastUpdated;
     tblCompetitor.IM_Status = iM_Status;
     return tblCompetitor;
 }