protected virtual int Db4oMinorVersion()
 {
     if (_db4oVersion != null)
     {
         return(System.Convert.ToInt32(Sharpen.Runtime.Substring(_db4oVersion, 2, 3)));
     }
     return(System.Convert.ToInt32(Sharpen.Runtime.Substring(Db4oFactory.Version(), 7,
                                                             8)));
 }
示例#2
0
 protected virtual int Db4oMajorVersion()
 {
     if (_db4oVersion != null)
     {
         return(Convert.ToInt32(Runtime.Substring(_db4oVersion, 0, 1)));
     }
     return(Convert.ToInt32(Runtime.Substring(Db4oFactory.Version(), 5,
                                              6)));
 }
示例#3
0
                public object Apply(object container)
                {
                    var adapter = ObjectContainerAdapterFactory.ForVersion(1, 1);

                    adapter.ForContainer((IExtObjectContainer)((IObjectContainer)container));
                    adapter.Store(new Item(Runtime.Substring(Db4oFactory
                                                             .Version(), 5)));
                    return(null);
                }
 private void Print(string msg, bool header)
 {
     if (stream != null)
     {
         if (header)
         {
             stream.WriteLine("[" + Db4oFactory.Version() + "   " + DateHandlerBase.Now() + "] "
                              );
         }
         stream.WriteLine(" " + msg);
     }
 }
示例#5
0
 public void SetOut(TextWriter outStream)
 {
     _config.Put(OutstreamKey, outStream);
     if (_container != null)
     {
         _container.LogMsg(19, Db4oFactory.Version());
     }
     else
     {
         Db4objects.Db4o.Internal.Messages.LogMsg(this, 19, Db4oFactory.Version());
     }
 }
 // Override to do updates also
 protected virtual string[] VersionNames()
 {
     return(new string[] { Sharpen.Runtime.Substring(Db4oFactory.Version(), 5) });
 }
                public object Apply(object container)
                {
                    IObjectContainerAdapter adapter = ObjectContainerAdapterFactory.ForVersion(1, 1);

                    adapter.ForContainer((IExtObjectContainer)((IObjectContainer)container));
                    adapter.Store(new MigrationHopsTestCase.Item(Sharpen.Runtime.Substring(Db4oFactory
                                                                                           .Version(), 5)));
                    return(null);
                }