internal StandardBuilder(DBtype type, MusicFolderHelper iPath, ManualSettings ism, Nullable<bool> CDBOOpen)
 {
     _Type = type;
     _Folders = iPath;
     _FromSetting = (ism == null);
     _ISM = ism ?? SettingsBuilder.FromUserSetting();
     DBCleanOnOpen = CDBOOpen;
     _NeedToSerialize = true;
 }
            private StandardBuilder(SerializationInfo info, StreamingContext context)
            {
                _Type = (DBtype)info.GetValue("Type", typeof(DBtype));
                _FromSetting = info.GetBoolean("FromSetting");
                if (_FromSetting)
                {
                    _ISM = SettingsBuilder.FromUserSetting();
                }
                else
                {
                    _ISM = (IMusicSettings)info.GetValue("Session Factory", typeof(ManualSettings));
                }

                _Cfg = (Configuration)info.GetValue("Configuration", typeof(Configuration));
                DBCleanOnOpen = (bool?)info.GetValue("DBCleanOnOpen", typeof(bool?));
                _NeedToSerialize = false;
            }
 internal StandardBuilder(DBtype type, MusicFolderHelper iPath, ManualSettings ism)
     : this(type, iPath, ism, true)
 {
 }
 static internal ISessionBuilder GetSessionBuilder(DBtype iType, ManualSettings ism = null, string RootPath = null)
 {
     MusicFolderHelper mfh = new MusicFolderHelper(RootPath);
     return CreateSessionBuilder(mfh, () => new StandardBuilder(iType, mfh, ism));
 }