minhphien / migratordotnet

Automatically exported from code.google.com/p/migratordotnet
0 stars 0 forks source link

Support Column Constructor with Default Value but no specified column Size #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Support a constructor for Columns with a Default value without specifying a
size.

The Dialects already have default sizes specified for Strings, Binary and
Decimals, so this shouldn't be too hard.

Original issue reported on code.google.com by geoffl...@gmail.com on 10 Jun 2008 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by geoffl...@gmail.com on 12 Jun 2008 at 7:34

GoogleCodeExporter commented 9 years ago
Hi, we already have this constructor without size but with ColumnProperty
public Column(string name, DbType type, ColumnProperty property, object 
defaultValue)
I'm using this in cases i need a default value for an int for example...
Are you suggesting to add one without the ColumnProperty also?

Original comment by gustavo.ringel@gmail.com on 13 Jun 2008 at 4:43

GoogleCodeExporter commented 9 years ago
Yes, I think we should add one without ColumnProperty if that makes sense?
public Column(string name, DbType type, object defaultValue)

We also need to cover those same things in the TransformationProvider API by
overloading the AddColumn methods.

Original comment by geoffl...@gmail.com on 13 Jun 2008 at 5:28

GoogleCodeExporter commented 9 years ago
SVN 106
Add the constructor and AddColumn that takes a default value but no size. It 
uses the
DB default size for that column type.

Original comment by geoffl...@gmail.com on 1 Aug 2008 at 3:22