/// <summary> /// Creates a <see cref="DatabaseInfo"/> /// </summary> /// <param name="databaseName">the name of the database</param> /// <param name="key">the key type</param> /// <param name="value">the value type</param> /// <param name="supportedStreamingModes"></param> public DatabaseInfo(string databaseName, SnapTypeBase key, SnapTypeBase value, IList <EncodingDefinition> supportedStreamingModes) { DatabaseName = databaseName; KeyTypeID = key.GenericTypeGuid; KeyType = key.GetType(); ValueTypeID = value.GenericTypeGuid; ValueType = value.GetType(); SupportedStreamingModes = new ReadOnlyCollection <EncodingDefinition>(supportedStreamingModes); }
/// <summary> /// Creates a <see cref="DatabaseInfo"/> /// </summary> /// <param name="databaseName">the name of the database</param> /// <param name="key">the key type</param> /// <param name="value">the value type</param> /// <param name="supportedStreamingModes"></param> public DatabaseInfo(string databaseName, SnapTypeBase key, SnapTypeBase value, IList<EncodingDefinition> supportedStreamingModes) { DatabaseName = databaseName; KeyTypeID = key.GenericTypeGuid; KeyType = key.GetType(); ValueTypeID = value.GenericTypeGuid; ValueType = value.GetType(); SupportedStreamingModes = new ReadOnlyCollection<EncodingDefinition>(supportedStreamingModes); }