Beispiel #1
0
 public XRootNamespace(guidanceItem root)
 {
     this.doc = new XDocument(root.Untyped);
     this.rootObject = root;
 }
		public static guidanceItem xmlDB_NewGuidanceItem(this TM_Xml_Database tmDatabase, Guid guidanceItemId, 
															  string title, string images,
//															  DateTime lastUpdate, 
															  string topic, string technology, string category, 
															  string ruleType, string priority, string status, 
															  string author,string phase,  string htmlContent, 
															  Guid libraryId
															  )
		{			
						
			var guidanceItem  = new guidanceItem()
									{
										id = (guidanceItemId == Guid.Empty) 
													? Guid.NewGuid().str()
													: guidanceItemId.str(),
										Author = author,
										Category = category,
										content = htmlContent,
					//					Date = lastUpdate.str(),	
										Priority = priority,
										Rule_Type = ruleType,
										//.Source ;
										Status = status,
										Technology = technology,
										title = title,
										Topic = topic,
										phase = phase, 
										libraryId = libraryId.str()
							//			.Type1;
							//			.type;
									};
			guidanceItem.xmlDB_Save_GuidanceItem(libraryId, tmDatabase);			
			return guidanceItem;
		} 
Beispiel #3
0
 public XRootNamespace(guidanceItem root)
 {
     this.doc        = new XDocument(root.Untyped);
     this.rootObject = root;
 }