/// <summary> /// Determines whether [has default property] [the specified property]. /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TProp">The type of the property.</typeparam> /// <param name="builder">The builder.</param> /// <param name="property">The property.</param> /// <returns></returns> public static IModelBuilder <T> HasDefaultProperty <T, TProp>(this IModelBuilder <T> builder, Expression <Func <T, TProp> > property) { _ = builder ?? throw new ArgumentNullException(nameof(builder)); return(builder.HasDefaultProperty(builder.ExpressionHelper.Property(property))); }
/// <summary> /// Determines whether [has default property] [the specified property]. /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TProp">The type of the property.</typeparam> /// <param name="builder">The builder.</param> /// <param name="property">The property.</param> /// <returns></returns> public static IModelBuilder <T> HasDefaultProperty <T, TProp>(this IModelBuilder <T> builder, Expression <Func <T, TProp> > property) => builder.HasDefaultProperty(builder.Exp.Property(property));