- Use Windows heap instead of SSAS heap
- Disable the option of blocking other queries if one of them is taking longer time
List<string> lookFor = new List<string>();
Type t = Type.GetType(string.Format("Entities.I{0}, Entities", EntityName));
foreach (PropertyInfo info in t.GetProperties())
{
if (info.PropertyType == Type.GetType("System.String"))
{
lookFor.Add(string.Format(" [{0}] Collate SQL_Latin1_General_CP1_CI_AS like '%{1}%' ", info.Name, txtName.Text));
}
}
string whereClause = string.Join(" OR ", lookFor.ToArray()) ;
DataSourceControl ds = WebFormUtil.GetControlByID(Page.Controls, EntityName + "DataSource") as DataSourceControl;
PropertyInfo filterProperty = ds.GetType().GetProperty("Parameters");
Object collection = filterProperty.GetValue(ds, null);
if (collection is ParameterCollection)
{
((CustomParameter)((ParameterCollection)collection)["WhereClause"]).Value = whereClause;
}
ds.DataBind();
| Entity Framework | .net Tier | |
| one file contains entities and relations | contains many projects and files to represent the entities and its relations | No. of files generated |
| you can subclass entities based on condition easily from designer | you have to create the subclass file and modify the super-class manually | Super-class and subclass |
| entity object references not accessible outside domain [web service, WCF] | entity object accessible anywhere | entity object accessibility |
| queries accessible via linq and e-sql | accessible via defined functions | data retrieved |
| select query generated from linq and e-sql | select query defined in sp | select query |
| using the facade generated class for update and delete and insert, no e-sql | using the sp for all the operations | DML functions |