共用方式為


T4 templates for WCF Data Services Part–II, Client Code-Gen

Click here to download.

GenerateDataServiceContext.tt generates a strongly-typed DataServiceContext type based on the service description.

GenerateEntityTypes.tt generates the client-side proxies for entity types exposed by the OData service.

GenerateViewModels.tt ( Silverlight Only ) generates viewmodels based on the entity type and provides some ease-of-use apis.

More documentation coming soon.