public static IMetadataBuilder Entity <TEntity>(
     this IMetadataBuilder metadataBuilder,
     Action <ITypeMetadataBuilder <TEntity> > typeBuilder)
 {
     typeBuilder.Invoke(metadataBuilder.Entity <TEntity>());
     return(metadataBuilder);
 }
 public static ITypeMetadataBuilder <TEntity> Entity <TEntity>(this IMetadataBuilder metadataBuilder)
 {
     return(new TypeMetadataBuilderWrapper <TEntity>(metadataBuilder.Entity(typeof(TEntity))));
 }