private InfectionDTO Map(tblInfection tblInfection) { if (tblInfection == null) return null; return new InfectionDTO() { MasterId = tblInfection.id, Name = tblInfection.Name, Code = tblInfection.Code, StatusId = tblInfection.IM_Status, DateLastUpdated = tblInfection.IM_DateLastUpdated, DateCreated = tblInfection.IM_DateCreated, Description = tblInfection.Description, InfectionTypeId = tblInfection.Type }; }
/// <summary> /// Deprecated Method for adding a new object to the tblInfection EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblInfection(tblInfection tblInfection) { base.AddObject("tblInfection", tblInfection); }
/// <summary> /// Create a new tblInfection object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="type">Initial value of the Type 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 tblInfection CreatetblInfection(global::System.Guid id, global::System.String name, global::System.Int32 type, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblInfection tblInfection = new tblInfection(); tblInfection.id = id; tblInfection.Name = name; tblInfection.Type = type; tblInfection.IM_DateCreated = iM_DateCreated; tblInfection.IM_DateLastUpdated = iM_DateLastUpdated; tblInfection.IM_Status = iM_Status; return tblInfection; }