简体   繁体   中英

BreezeSharp: is it possible to use server side POCO model on the client side?

I'm trying out Breeze Sharp for a new WPF app I'm building. I was wondering if there's any way to generate the client side entity from the EF6 Code First Entity.

It would be a showstopper if we had to hand code the client models and keep the client/server entities in sync manually.

Also, I see BreezeJS is quite popular and has a lot of info on the web but BreezeSharp has limited info. Is BreezeSharp a good option for enterprise application? My application will be data heavy and will have a lot of attributes in the entities.

Update 1: I tried to use the server side model project on the client and got the following error:

Metadata errors encountered: Metadata mismatch classification: 'Missing CLR Entity Type' - for StructuralType: 'XXX...'

Hope someone here can shed some light..

Use partial classes as descriped here . More infos see this answer . Both answers are from people working on Breeze.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM