Maybe take a look at what odata and breeze can do for you.  Their samples 
might give you some good insight into how to approach this.

On Tuesday, February 18, 2014 2:33:12 AM UTC-8, Jake Peteman wrote:
>
> I'm new to designing web applications and don't really know where I should 
> start in regards to handling a database. I'm building an application which 
> will have a lot of different type of objects, do I need to write WebAPI 
> controllers for each and every one of them? Like for example if I have a 
> Vehicle class, is there any way to just bind the whole database to Angular 
> and then list all the Vehicles from there instead of implementing 
> controllers for each and every one of my type of objects? Ideally I'd like 
> to write something like
>
>  <tr data-ng-repeat="v in vm.Vehicles">
>     <td>{{v.speed}}</td>
>     <td>{{p.location}}</td>
>     <td>{{p.type}}</td>
> </tr>
>
> and not have to worry about setting up a controller for every new object I 
> add, and just query the Entity class names and variable names instead.
>
> Any help is appreciated!
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to