How to use sql user defined types in entity framework 6 <p>How can I use a User Defined Type - written by SQL CLR - in Entity Framework? This type is designed to implement Persian Date Data Types in the right way. I tried to use HasColumnType() to use this custom type:</p> <pre><code>modelBuilder.Properties() .Where(x =&gt; x.PropertyType == typeof(DateTime)) .Configure(c =&gt; c.HasColumnType("PersianDate")); </code></pre> <p>but it wasn't successful and I got this error:</p> <blockquote> <p>System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable<code>1 source, Func</code>2 predicate) at System.Data.Entity.Utilities.DbProviderManifestExtensions.GetStoreTypeFromName(DbProviderManifest providerManifest, String name) at System.Data.Entity.ModelConfiguration.Configuration.Properties.Primitive.PrimitivePropertyConfiguration.ConfigureColumn(EdmProperty column, EntityType table, DbProviderManifest providerManifest) at System.Data.Entity.ModelConfiguration.Configuration.Properties.Primitive.PrimitivePropertyConfiguration.Configure(EdmProperty column, EntityType table, DbProviderManifest providerManifest, Boolean allowOverride, Boolean fillFromExistingConfiguration) at ...</p> </blockquote> <p>I'm sure that this error is result of using HasColumnType(). Also I'm sure that this types works correctly in my database.</p>