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))); }
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))); }