/// <summary> /// Deprecated Method for adding a new object to the LRS EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLRS(LR lR) { base.AddObject("LRS", lR); }
/// <summary> /// Create a new LR object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="lRSSchemeId">Initial value of the LRSSchemeId property.</param> /// <param name="data">Initial value of the Data property.</param> public static LR CreateLR(global::System.Int32 id, global::System.Int32 lRSSchemeId, global::System.String data) { LR lR = new LR(); lR.Id = id; lR.LRSSchemeId = lRSSchemeId; lR.Data = data; return lR; }
private Models.LR CompileLrs(DRCOG.Domain.Models.LRS lrs) { var xdoc = new XDocument(new XElement("item", new XElement("BEGINMEASU", lrs.BEGINMEASU), new XElement("Comments", lrs.Comments), new XElement("ENDMEASURE", lrs.ENDMEASURE), new XElement("Improvetype", lrs.Improvetype), new XElement("Network", lrs.Network), new XElement("Routename", lrs.Routename))); var model = new Models.LR() { ProjectSegmentId = lrs.SegmentId, Data = xdoc.ToString(), LRSSchemeId = 1 // our only schema }; return model; }