build your silver light application
TRANSCRIPT
By Pranay Rana
Image copied from : Nikhil Kothari’s BlogBlog : http://pranayamr.blogspot.com
Twitter : http://twitter.com/pranayamrFaceBook : http://www.facebook.com/pages/GMind-Solution
• How Silverlight application work
• Domain Service
• MetaData and Shared Files
• Bindings and DataContext
• Validations (Client side and Server side)
• CRUD operation
Rich application
8/1/11
8/1/11
8/1/11
• Domain services are Windows Communication Foundation (WCF) services that encapsulate the business logic of a WCF RIA Services application.
• WCF RIA Services simplifies the traditional n-tier application pattern
• Enable client and server by exposing code on client side which is written on server side
• Enable entity , validation logic
• Partial classes of the entity classes designed by enity model
• Same as entity class just to add attribute to the property , Never get called
• Defined by added following attribute at top
[MetadataTypeAttribute(typeof(classname))]
8/1/11
• Allow to share code between client and server
• Allow to share the business login between server and clientI used it for the validation purpose
• Source of Data
• Most of the time its an instance of entity.
property="{Binding}"
property="{Binding Path=pathvalue}"
property="{Binding
oneOrMoreBindingProperties}"
Property ="{Binding Path=pathvalue,
oneOrMoreBindingProperties}"
Converter
ConverterCulture
ConverterParameter
Mode
Source
Path
NotifyOnValidationError
ValidatesOnExceptions
• One Way binding
– Data Flow from entity instance to presentation
• Two Way binding
– Data Flow form entity instance to presentation and presentation to entity instance
• Data Annotation Validation Attributes
– Required
– StringLength
– Regular Expressions
– Range (for numeric inputs)
• Custom Validation Attributes
8/1/11
Question and
Query
Thank YOU