Class ExampleCustomer
- Namespace
- Dynamicweb.Examples.Items
- Assembly
- Dynamicweb.Examples.dll
[Item("Customer", "The example of code-first item")]
[AreaRule]
[StructureRule(new StructureContextType[] { StructureContextType.Websites })]
[ParentRule(new ParentRestrictionRule.ParentType[] { ParentRestrictionRule.ParentType.RootOfWebsite, ParentRestrictionRule.ParentType.RegularPage })]
[Category("Example")]
[Icon(KnownIcon.User)]
public class ExampleCustomer : ItemEntry
- Inheritance
-
ExampleCustomer
- Inherited Members
-
Properties
Address
[ItemTypeEditor("Address", "ExampleAddress", EnablePresets = true)]
public string Address { get; set; }
Property Value
- string
Age
public int Age { get; set; }
Property Value
- int
Growth
public decimal Growth { get; set; }
Property Value
- decimal
LinkToNews
[LinkToItem("Link to news", EnablePageSelection = true)]
public string LinkToNews { get; set; }
Property Value
- string
Name
public string Name { get; set; }
Property Value
- string
Number
public long Number { get; set; }
Property Value
- long
Password
public string Password { get; set; }
Property Value
- string
Weight
[Decimal("Weight")]
public float Weight { get; set; }
Property Value
- float