I have an O-Data service, and I already consumed it in ASP.Net project using VS 2012
Now i want to use an ASP.Net User Control to handle CRUD operations for this odata service automatically.
I hope to find a user control like GridView that allow me to :
Display the data from the odata service.
Add new records.
Update an existing one.
Delete an existing one.
You have a few options, but Kendo UI/Telerik's MVC Grid probably the most prevalent that has built in support:
http://blogs.telerik.com/aspnetmvcteam/posts/10-12-16/binding-telerik-grid-for-asp-net-mvc-to-odata.aspx
http://www.telerik.com/products/aspnet-mvc.aspx
Personally, I would recommend to do your own CRUD operations, or use something like Datatables http://www.datatables.net/ and write your own adapter to run between.
Related
I want oracle forms like list of values (LOV) in asp.net web forms.
How can I build it.
Any idea or example ?
Asp.net web form or mvc it's like baby when you compare it
with oracle adf or oracle form we have to build LOV manually
no efficient component like LOVS in asp.net and gridview
it's simple UI not a complex adf table with high feature
especially control query run time processing asp.net gridview
could hang application server if you not build your paging manually
many problem with Microsoft product especially web form
and in the MVC no control we need to build everything manually
but there's a good news asp.net dynamic controller can build views by wizard
don't be happy the UI look like anything but not a UI
I have an application which is in ASP.NET, ADO.NET, Oracle 11g
My structure of application is as follow
There are business entity classes for every entity in my application
Employee entity contains
a. Name
b. Age
etc
I have written a stored procedure to fetch and insert every operation related to database using ADO.NET. It return list<> of Business Entities from by separate logic part.
Some of the presentation logic is split into user-controls.
Using jquery-ajax to load most of the component for asynchronous load on pages. To speed up the page.
Have used data-caching in my project.
Not wanted to move the project into MVC 4 for better performance. Is it a good idea to move the project to ASP.NET MVC?
I also wanted to know weather it is technically ok to change it to mvc.
I don't want to change my database logic as it is well written.
So can I use MVC?
Any suggestion on any link provided will be a good help.
I was looking for a best framework to develop an ASP.Net Web application.
It will be using database MS SQL Server 2000 (It has to deal with other application)
The Web server is equipped with .Net 4.0 framework
The application is mainly reading data and displaying to the user. Writing to the database is very seldome. And it should have an option to generate reports also.
Which architecture solution I should choose develop such an application?
What will be best approach?
Asp.net Webform would be easier especially if you need render report in a gridview, it also enable you to drag and drop lots of controls for fast development. You can write minimum code to achieve reading data and displaying to the user, such as defining datasource in aspx page of a gridview.
MVC on the other hand requires you to write every bit of Html by yourself, though there are some auto generated razer views, you gain more controls and get rid of viewstate, but it takes much more time to develop and learn.
You should use EF regardless which architecture you choose, it's an ORM tool for writting multi-layered applications
I'm staring to learn T4 .
I want to create a framework for my self that enable me to generate DAL and UI.
Like Code generator softwares that maps Codes and User Interface from database .
i don't have any question about generating data access layer.
my challenge is to generate UI ( asp.net controls and HTML).
is there any sample exist with T4?
what are your suggestions about this Code Generator that i want create?
Please try my post here: T4 Templates for ASP.NET Web Form CRUD Application.
I put a very basic code snippet generating templates for an aspx page (DetailsView and GridView for CRUD), ObjectDataSource methods for CRUD operations in VB, and SQL stored procedures matching with them.
Have you looked into Microsoft Visual Studio LightSwitch? I feel your search ends at Microsoft LightSwitch.
LightSwitch is able to generate UI for you. All you need to do is tell it to pull the data from one of the logical ends it is able to understand. As of now it is letting you talk to 1) WCF RIA services, 2) to Sharepoint through WCF data services and you can also connect LightSwitch presentation layer to Entity Framework.
Besides this you get amazing capability to customize your UI. LightSwitch UI is basically Silverlight 4 based UI which can be hosted out of browser or on a web server.
Hope this helps.
What is the best method/technology to sharing the same data access layer between WPF, Silverlight, and ASP.NET?
I am using ADO.NET Entity framework, and was thinking of a creating a DAL using the Repository pattern.Then using the RIA Services as a dummy middle man to connect Silverlight and ASP.NET. Is this a solid plan or are there other better solutions out there?
One of the solutions I like to use is the following :
- Have a project storing only the entities (for example : Player, Game, Entity) with no reference to the database at all.
- Have a project implementing the repository pattern (Repository, Repository etc...)
- Use ADO.NET Entity Framework code first approach to map with the database (it creates a dynamic child object of your entities contain in your project, see ScottGu's blog for an explanation on how to use it)
Connecting Silverlight to your pattern can be done with Ria Services or classic WCF services. Usually I try to use WCF whenever possible as Ria Services is not really compliant with an MVVM development.
If you want to use WCF and share your DAL entities with Silverlight you can create a MyDal.Silverlight Silverlight class library project and add symbolic link instead of copies of every entities you will want to share with Silverlight. Then when you'll add a service reference with visual studio it will be smart enough to not create copies off Player, Game and User to you Silverlight project.
If you want to use Ria Services it will create copies of you entities anyway.
Hope that helps
John
RIA Services
RIA services will certainly take the burden off you for all the WCF plumbing. It has a few minor flaws (lack of certain data types), but there are workarounds for most problems.
The validation model (using attribute decoration and custom validators) is very strong and a great place to hang business rules.
RIA coexists happily with ASP.Net, so that is another plus. Behind the scenes it is just another WCF service. We are happily using RIA services with MVVM and Prism.
ADO.Net EF model
This is a tried and tested feature rich model. The only problems I have found related to many-to-many relationships. Again there are workarounds.
DAL
As RIA change sets are managed for you on anything, including POCO, this is the area that will need the most attention. It is considered "bad" to expose your EF model directly to RIA and that will certainly not insulate you from data changes.
I can't specifically recommend any one pattern yet (still experimenting), but make sure your choice is compatible with IQueryable. The paging feature and appending to Linq queries for server-side execution are features you do not want to lose!