|
using CodeEffects.Rule.Attributes;
using CodeEffects.Rule.Common;
namespace CodeEffects.Rule.Demo.Filter.Mvc.Models
{
// Please see the following article for details on this interface and why do we need to declare it:
// http://rule.codeeffects.com/Doc/Preserving-Attributes-In-Auto-Generated-Classes
public interface ICustomer
{
[ExcludeFromEvaluation]
int CustomerID { get; set; }
[Field(DisplayName = "Cell Phone", ValueInputType = ValueInputType.User)]
string CellPhone { get; set; }
[Field(DisplayName = "Company Name", ValueInputType = ValueInputType.User)]
string CompanyName { get; set; }
[Field(DisplayName = "First Name", ValueInputType = ValueInputType.User)]
string FirstName { get; set; }
[Field(DisplayName = "Last Name", ValueInputType = ValueInputType.User)]
string LastName { get; set; }
[ExcludeFromEvaluation]
int BillingAddressID { get; set; }
[Field(DisplayName = "Billing City")]
string BillingCity { get; set; }
[Field(DataSourceName = "Countries", DisplayName = "Billing Country")]
int BillingCountryID { get; set; }
[Field(DisplayName = "Billing Phone")]
string BillingPhone { get; set; }
[Field(DisplayName = "Billing Zip")]
string BillingPostal { get; set; }
[Field(DisplayName = "Billing State")]
string BillingState { get; set; }
[Field(DisplayName = "Billing Street")]
string BillingStreet { get; set; }
[Field(DisplayName = "Billing Apt/Suite")]
string BillingStreet2 { get; set; }
[ExcludeFromEvaluation]
int ShippingAddressID { get; set; }
[Field(DisplayName = "Shipping City")]
string ShippingCity { get; set; }
[Field(DataSourceName = "Countries", DisplayName = "Shipping Country")]
int ShippingCountryID { get; set; }
[Field(DisplayName = "Shipping Zip")]
string ShippingPostal { get; set; }
[Field(DisplayName = "Shipping State")]
string ShippingState { get; set; }
[Field(DisplayName = "Shipping Phone")]
string ShippingPhone { get; set; }
[Field(DisplayName = "Shipping Street")]
string ShippingStreet { get; set; }
[Field(DisplayName = "Shipping Apt/Suite")]
string ShippingStreet2 { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.