-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Is there a way to get the string for a datatype (VARCHAR(MAX)/INT/UNIQUEIDENTIFIER/etc)? For example, to construct a dynamic SQL string:
using (var context = new MyContext())
{
var entityInfo = context.Db<MyEntity>();
var dataType = entityInfo.Prop(a => a.MyProperty).[Something] ; // What to do here?
var sql = $"CREATE TABLE MyEntity ( MyProperty {dataType} NULL);";
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels