When designing business classes, a common task is to ensure that a newly created business object is initialized with default property values. This topic explains how different types of properties can be initialized. As an example, a Contact business…
When designing business classes, a common task is to ensure that a newly created business object is initialized with default property values. This topic explains how different types of properties can be initialized. As an example, a Contact business…
This lesson explains how to set rules for business classes and their properties. These rules are validated when an end-user executes a specified operation. This lesson will guide you through implementation of a rule that requires that the Position.Ti…
Python’s handling of default parameter values is one of a few things that tends to trip up most new Python programmers (but usually only once). What causes the confusion is the behaviour you get when you use a “mutable” object as a default value; tha…
This topic describes how to implement a business class, so that one of its properties is calculated based on a property(ies) of the objects contained in the child object collection. 本主题介绍如何实现 Business 类,以便基于子对象集合中包含的对象的属性计算其属性之一. Tip 提示 A complete sa…
In this lesson, you will learn how to set a display format and an edit mask to a business class property. For this purpose, the Task.StartDate, Task.DueDate, Task.PercentCompleted and PhoneNumber.Number properties' display format will be customized u…
In this lesson, you will learn how to check whether or not a property value satisfies a particular rule. For this purpose, the DemoTask.Status property and the MarkCompleted Action will be used. This action should not be executed if the current task…
Property Mappings using Fluent API: Here, we will learn how to configure properties of an entity class using Fluent API. We will use the following Student and Standard domain classes of our school application. public class Student { public Student()…