コード例 #1
0
 // TODO Auto-generated method stub
 /// <exception cref="System.IO.IOException"></exception>
 public virtual void RemoveField(string className, string attributeName)
 {
     NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel metaModel = storageEngine.GetSession
                                                                    (true).GetMetaModel();
     NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo ci = metaModel.GetClassInfo(className
                                                                                , true);
     NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassAttributeInfo cai2 = ci.GetAttributeInfoFromName
                                                                        (attributeName);
     ci.RemoveAttribute(cai2);
     storageEngine.GetObjectWriter().UpdateClassInfo(ci, true);
 }