The best part of using Entity Data Model designer is having the facility to use LINQ with the objectcontext.
Now consider you have the object-layer code created as follows-
///
/// No Metadata Documentation available.
///
public partial class InventoryEntities : ObjectContext
{
//autogenerated code
///
/// No Metadata Documentation available.
///
public ObjectSet Products
{
get
...
public string aboutme {
var known = { { "C#" , "Javascript" }, { "ASP.NET", "MVC" } };
return known.ToJson();
}
Friday, 20 May 2011
Object-Layer Code not getting updated correctly
Generating Object-Layer Code is the easiest way to generate code for database instead of writing the for yourself. refer to Generating Object-Layer Code
Code can be generated for Object-Layer as follows:-
1. Create an Entity Data Model design
2. Right click on EDM design and select "Update Model from Database..."
3. Select the database and select the required table
4. Select finish to get the code generated
The code is now...
Labels:
ADO.NET
Wednesday, 4 May 2011
Improving Performance of JQGrid for millions of records : Part2
This article will address more from ASP.NET point of view assuming you have already read Part 1
Now that you have all the back-end available lets get on with developing the website.
Start with the usual steps
1. Create an ASP.NET website
2. Add the required java scripts (JQuery, JQueryUI, JQGrid plugin)
3. Now add a new web service to the project and name it InvoicingService
InvoicingService.cs should look like
[WebMethod,...
Labels:
ASP.NET Ajax
Improving Performance of JQGrid for millions of records : Part 1
JQGrid plugin does not require any introduction for itself. As everyone already knows the fact that JQGrid plugin is a powerful plugin for serving data from server to the client. Also it provides very good features such as sorting, paging, filtering etc.
Now lets look at how JQGrid can be used in ASP.NET for serving millions of records with out having the following effects:-
- website hanging
- memory leaks
- page time out
-...
Labels:
ASP.NET Ajax
Create Work Item Template for Team
Work item templates are very good option to apply a set of changes for a group of work items( for eg: bugs). But have you come across having difficulty not to be able to have shared work item templates, if so just follow these simple steps and you can achieve it.
Before creating a work item template, choose a shared location where each of team member have access such \\csharptechies\workitemtemplates, if you do not already have...
Labels:
VS 2010
Subscribe to:
Posts (Atom)