示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLiteStorage" /> class.
 /// </summary>
 /// <param name="filename">The filename.</param>
 /// <param name="tableName">Name of the table.</param>
 /// <param name="options">The options.</param>
 public SQLiteStorage(string filename, string tableName, SQLiteStorageOptions options)
 {
     if (String.IsNullOrEmpty(tableName))
     {
         throw new ArgumentNullException("TableName");
     }
     m_options = options ?? SQLiteStorageOptions.UniqueKeys();
     TableName = tableName;
     Configure(filename, m_options.CacheSize);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLiteStorage" /> class.
 /// </summary>
 /// <param name="filename">The filename.</param>
 /// <param name="options">The options.</param>
 public SQLiteStorage(string filename, SQLiteStorageOptions options)
     : this(filename, typeof(T).Name, options)
 {
 }