コード例 #1
0
        protected override string GetDbProviderManifestToken(DbConnection connection)
        {
            if (String.IsNullOrEmpty(connection.ConnectionString))
            {
                throw new ArgumentNullException("ConnectionString");
            }

            SortedList <string, string> opts = SQLiteConnection.ParseConnectionString(connection.ConnectionString);

            return(SQLiteConnection.FindKey(opts, "DateTimeFormat", "ISO8601"));
        }
コード例 #2
0
        protected override string GetDbProviderManifestToken(DbConnection connection)
        {
            if (String.IsNullOrEmpty(connection.ConnectionString))
            {
                throw new ArgumentNullException("ConnectionString");
            }

            bool parseViaFramework = false;

            if (connection is SQLiteConnection)
            {
                parseViaFramework = ((SQLiteConnection)connection).ParseViaFramework;
            }

            SortedList <string, string> opts = parseViaFramework ?
                                               SQLiteConnection.ParseConnectionStringViaFramework(connection.ConnectionString, false) :
                                               SQLiteConnection.ParseConnectionString(connection.ConnectionString);

            return(SQLiteConnection.FindKey(opts, "DateTimeFormat", "ISO8601"));
        }