src/Shared/EntityFramework/Migrations/Sql/MigrationSqlGenerator.cs
/// <summary>
/// Builds the store type usage for the specified <paramref name="storeTypeName"/> using the facets from the specified <paramref name="propertyModel"/>.
/// </summary>
/// <param name="storeTypeName">Name of the store type.</param>
/// <param name="propertyModel">The target property.</param>
/// <returns>A store-specific TypeUsage</returns>
Builds the store type usage for the specified  using the facets from the specified .
Builds the store type usage for the specified using the facets from the specified .
protected virtual TypeUsage BuildStoreTypeUsage(string storeTypeName, PropertyModel propertyModel)
        {
            var storeType = ProviderManifest.GetStoreTypes()
                                   .SingleOrDefault(p => string.Equals(p.Name, storeTypeName, StringComparison.OrdinalIgnoreCase));
            return storeType == null
                ? null
                : TypeUsage.Create(storeType, propertyModel.ToFacetValues());
        }
protected virtual TypeUsage BuildStoreTypeUsage ( string storeTypeName , PropertyModel propertyModel ) { var storeType = ProviderManifest . GetStoreTypes ( ) . SingleOrDefault ( p => string . Equals ( p . Name , storeTypeName , StringComparison . OrdinalIgnoreCase ) ) ; return storeType == null ? null : TypeUsage . Create ( storeType , propertyModel . ToFacetValues ( ) ) ; }
Builds the store type usage for the specified  using the facets from the specified .
Builds the store type usage for the specified using the facets from the specified .
A store-specific TypeUsage
A store - specific TypeUsage
storeTypeName
string
Name of the store type.
Name of the store type .
propertyModel
PropertyModel
The target property.
The target property .