Is it possible to create User-Defined Data Types when using EF 4.1 Code First?
When using EF 4.1 Code First, is it possible to create User-Defined Data Types for your schema? Simple answer is no. Longer answer: Current EF implementation leads to multiple issues when trying to use user defined types: The type must be defined prior to its usage in table's DDL definition. Because of that the type cannot be defined in Seed method of database initializer (as often used for other database constructs like triggers or indexes). To make this work you must create whole new initializer by implementing IDatabaseInitializer and separate database creation and table creation because