Ejemplo n.º 1
0
 public static NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine GetEngine(NeoDatis.Odb.ODB
                                                                        odb)
 {
     if (odb is NeoDatis.Odb.Impl.Main.ODBAdapter)
     {
         NeoDatis.Odb.Impl.Main.ODBAdapter oa = (NeoDatis.Odb.Impl.Main.ODBAdapter)odb;
         return(oa.GetSession().GetStorageEngine());
     }
     throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Odb.Core.NeoDatisError.InternalError
                                                .AddParameter("getEngine not implemented for " + odb.GetType().FullName));
 }