예제 #1
0
 public static XElement IdNode(string name)
 {
     if (String.IsNullOrWhiteSpace(name))
     {
         name = String.Format("{0}__{1}", Globals.HbmXmlNames.ID, NfString.GetNfRandomName());
     }
     return(new XElement(Globals.HbmXmlNames.ID.ToLower(),
                         new XAttribute(Globals.HbmXmlNames.NAME, name),
                         new XAttribute(Globals.HbmXmlNames.TYPE, "Guid"),
                         new XAttribute(Globals.HbmXmlNames.GENERATOR, "guid")));
 }