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