示例#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)));
        }