Modifiy Dynamic Data DbType and DBSqlType
Hi.
I have created DynamicData following code,now i may want to change MAX value instead of 255! using API
bool changedDB = false;
App.WorkWith().DynamicData().Type(typeof(Document))
.Field().TryCreateNew("Description", typeof(string), ref changedDB).Done()
.SaveChanges(true);
Thnks
Jmr
Hi Jmr,
You could use the following code:
bool
changedDB =
false
;
App.WorkWith().DynamicData().Type(
typeof
(Document))
.Field()
.TryCreateNew(
"Description11"
,
typeof
(
string
), refchangedDB)
.Do(
f =>
f.DBType =
"LONGVARCHAR"
;
f.DBSqlType =
"NAVARCHAR(MAX)"
;
)
.Done()
.SaveChanges(
true
);