Exemplo n.º 1
0
 private void ReadAdvancedDataObjects(PersistentClass cls, XElement xml)
 {
     foreach (SqlObject obj in SqlObject.CreateDefaults(cls))
     {
         obj.Table = cls;
         cls.SqlObjects.Add(obj);
     }
     foreach (XElement e in xml.Elements())
     {
         string name = e.Name.LocalName;
         if (name == "ref")
         {
             continue;
         }
         if (cls.DataTypeMap.ContainsKey(name) && string.IsNullOrWhiteSpace(e.Value))
         {
             continue;
         }
         foreach (SqlObject obj in SqlObject.Create(cls, e))
         {
             cls.SqlObjects.Add(obj);
         }
     }
 }