Пример #1
0
        public static IStorageEngine GetEngine(IOdb odb)
        {
            var oa = odb as OdbAdapter;
            if (oa != null)
                return oa.GetSession().GetStorageEngine();

            throw new OdbRuntimeException(
                NDatabaseError.InternalError.AddParameter(string.Format("getEngine not implemented for {0}",
                                                                       odb.GetType().FullName)));
        }
Пример #2
0
        public static IStorageEngine GetEngine(IOdb odb)
        {
            var oa = odb as OdbAdapter;

            if (oa != null)
            {
                return(oa.GetSession().GetStorageEngine());
            }

            throw new OdbRuntimeException(
                      NDatabaseError.InternalError.AddParameter(string.Format("getEngine not implemented for {0}",
                                                                              odb.GetType().FullName)));
        }