Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi All,

I'm going to develop my application using Database first approach, is there anyway to do with layered architecture?

Thanks
Posted

Yes oviously there is, you can follow repository pattern for this.
The best thing is to put the .Edmx file in the Infrastructure folder rather than in the core folder.
Please follow the following link for Onion Architecture
Onion Architectur[^]
This is very nice and layered architecture to follow.
hope this helps
Thanks
:)
 
Share this answer
 
Comments
slSoftware 12-Oct-14 14:21pm    
Hi Suraj

Thank you very much, really helpful.
[no name] 12-Oct-14 14:25pm    
Welcome. I would be glad to help any time...
slSoftware 14-Oct-14 9:01am    
Hi , Have you used knockout js with any grid controls (kendo, koGrid ..etc) ? or which way you used to show grids?
[no name] 14-Oct-14 9:03am    
I have used both but not together. Still what is the query? May I try to solve if possible..:)
slSoftware 14-Oct-14 9:05am    
we have used kendo with jquery in my previous project, i thought to use kendo with knockout as well. is kendo support with nested and inline edit grids with knockout? can you please send some example code please. Highly appreciate the quick response.
Kendo and Knockout[^]
Please check here
I have never used but still please check here. I will explore more from now. You can keep posting your queries below this for more discussion.
Thanks
:)

Have you checked this??
Check this[^]
 
Share this answer
 
v2
Comments
slSoftware 14-Oct-14 9:13am    
I have already checked that doc, but it is not giving good guide.
[no name] 14-Oct-14 9:16am    
But what I think is we can normally use. see Knockout is MVVM approach right!! and we just bind data to the kendo grid and all from the model data passed from server, so what issue this might do!! This should work out fine.
[no name] 14-Oct-14 9:17am    
See the other link in the solution. See in that example, the data-bind attribute is used and simple way as knock view model binding is done.
slSoftware 14-Oct-14 9:24am    
ok let me explain more about my problem.

Here is the example from above link

var ViewModel = function() {
this.items = ko.observableArray([
{ id: "1", name: "apple"},
{ id: "2", name: "orange"},
{ id: "3", name: "banana"}
]);

this.template = kendo.template('<div>#= name #</div>');

this.addItem = function() {
var num = this.items().length + 1;
this.items.push({ id: num, name: "new" + num});
};
};

How can i bind my object list (have to call via web api ) to this.items ?
[no name] 14-Oct-14 9:37am    
you can do this by making an ajax call and on success assign the values to the thi.items. I think this approach should work!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900