Skip to content

Commit

Permalink
Fixed issue with Identity column detection in SqlCompact
Browse files Browse the repository at this point in the history
  • Loading branch information
markrendle committed Jan 23, 2011
1 parent 1e6bbdb commit b2c163c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Simple.Data.SqlCe40/SqlCe40SchemaProvider.cs
Expand Up @@ -36,7 +36,7 @@ private static Table SchemaRowToTable(DataRow row)

public IEnumerable<Column> GetColumns(Table table)
{
return Enumerable.Select(GetColumnsDataTable(table).AsEnumerable(), row => new Column(row["COLUMN_NAME"].ToString(), table, row["AUTOINC_SEED"] != null));
return Enumerable.Select(GetColumnsDataTable(table).AsEnumerable(), row => new Column(row["COLUMN_NAME"].ToString(), table, row["AUTOINC_SEED"] != DBNull.Value));
}

public IEnumerable<Procedure> GetStoredProcedures()
Expand Down

0 comments on commit b2c163c

Please sign in to comment.