Skip to content

Commit

Permalink
[Contrib][T4][SQl Server] Missing DefaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaccabit committed Nov 30, 2012
1 parent e5b0b6a commit 546536f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ List<Column> LoadColumns(Table tbl)
col.Precision = GetDatatypePrecision(rdr["DataType"].ToString());
col.IsNullable = rdr["IsNullable"].ToString() == "YES";
col.IsAutoIncrement = ((int)rdr["IsIdentity"]) == 1;
col.DefaultValue = rdr.IsDBNull(5) ? null : rdr["DefaultSetting"].ToString();
result.Add(col);
}
}
Expand Down

0 comments on commit 546536f

Please sign in to comment.