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