Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (35 sloc) 1.32 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace NHail.ComponentModel.DataAnnotations.Fluent
{
public interface IAttributeConfiguration<TSource>
{
/// <summary>
/// Adds the attributes to the property
/// </summary>
/// <typeparam name="TProperty"></typeparam>
/// <param name="property"></param>
/// <param name="attributes"></param>
/// <returns></returns>
IAttributeConfiguration<TSource> AddPropertyAttributes<TProperty>(Expression<Func<TSource, TProperty>> property,
params Attribute[] attributes);
/// <summary>
/// Adds the attributes to the property
/// </summary>
/// <typeparam name="TProperty"></typeparam>
/// <param name="property"></param>
/// <param name="attributes"></param>
/// <returns></returns>
IAttributeConfiguration<TSource> AddPropertyAttributes(string propertyName, params Attribute[] attributes);
/// <summary>
/// Adds the attributes to the class
/// </summary>
/// <param name="attributes"></param>
/// <returns></returns>
IAttributeConfiguration<TSource> AddAttributes(params Attribute[] attributes);
}
}