Binding controls data to method
In this article We'll:
- Review the different data types that are used in the migration and their unique attributes
MigratedDataTypes Power Point Presentation
- Create a GetDayOfWeek method and bind a control to the result of this method.
- Explain the different parts of the method
- We need the method to be
internal
orpublic
because we want to use it in another class - theShowOrdersView
class - The method has to have the one of the migrated return types
Text
,Number
,Date
,Time
orBool
internal Text GetDayOfWeek()
{
return Orders.OrderDate.DayOfWeek.ToString();
}
- Review the Property Sheet in the Visual Studio Designer
- Explain about the quick properties window
- We'll review the "Select Data" window, and explain that we have the controller, the tables, and the new
GetDayOfWeek
method
- Number
- Text and Bool
- Date
- Time
- Getting the day of week using User Methods
- Using csharp6 syntax to get the day of week
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com