/// <summary>Builds a meta model from a list of class infos</summary> /// <param name="classInfos"></param> /// <returns>The new Metamodel</returns> public static NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel FromClassInfos(NeoDatis.Tool.Wrappers.List.IOdbList <NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo> classInfos) { NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel metaModel = new NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel (); int nbClasses = classInfos.Count; for (int i = 0; i < nbClasses; i++) { metaModel.AddClass(classInfos[i]); } return(metaModel); }
public override NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel Duplicate() { NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel model = new NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel (); NeoDatis.Tool.Wrappers.List.IOdbList<NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo > classes = GetAllClasses(); foreach (NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo ci in classes) { model.AddClass((NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo)ci.Duplicate(false )); } model.changedClasses = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo , NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo>(); model.changedClasses.PutAll(changedClasses); return model; }
public override NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel Duplicate() { NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel model = new NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel (); NeoDatis.Tool.Wrappers.List.IOdbList <NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo > classes = GetAllClasses(); foreach (NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo ci in classes) { model.AddClass((NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo)ci.Duplicate(false )); } model.changedClasses = new NeoDatis.Tool.Wrappers.Map.OdbHashMap <NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo , NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo>(); model.changedClasses.PutAll(changedClasses); return(model); }
/// <summary>Builds a meta model from a list of class infos</summary> /// <param name="classInfos"></param> /// <returns>The new Metamodel</returns> public static NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel FromClassInfos(NeoDatis.Tool.Wrappers.List.IOdbList <NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo> classInfos) { NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel metaModel = new NeoDatis.Odb.Core.Layers.Layer2.Meta.SessionMetaModel (); int nbClasses = classInfos.Count; for (int i = 0; i < nbClasses; i++) { metaModel.AddClass(classInfos[i]); } return metaModel; }