Search code examples
angulartypescriptbreeze

breeze-brideg-angular2 : do I need to create my breeze entity classes


do I need to create my breeze entity classes when using the breeze-brideg-angular2 because otherwise how do I get the below line of code working in the suggested solution at https://github.com/Breeze/breeze.bridge.angular2/blob/master/README.md

import { Customer } from './entities'; 

Solution

  • That snippet assumes that you have created classes for your model entities. Such classes aren't required but they sure are helpful.

    You can create them by hand and that's not hard.

    In many cases you can generate them from server-side #C classes with a tool that I believe is described in the referenced TempHire example (the code is there for sure).

    Better documentation would help, we agree.