Click here to Skip to main content

Comments by Bishnu Tewary (Top 4 by date)

Bishnu Tewary at 9-Apr-12 9:19am View
Thank you mark for your time . :)
Bishnu Tewary at 9-Apr-12 8:54am View
Sorry you are not getting my question,
My question is I am passing the Tablename to that function
and i am not like to use switch statement or if-else
Entity obj = context.entity.FirstOrDefault(e => e.key == key);
Where here entity is the table but how could we use , because here entity depends on the tablename parameter passed from the calling method.
Bishnu Tewary at 9-Apr-12 7:37am View
Hi Mark,
Thanks for you reply but for this methode
public bool CheckKey(string tableName, string keyName, string keyValue, MyMotorEntities objDb)
Can you please describe which is the key?
because here I am passing the table name so key will be differ for tables.
I want to create a methode which takes Entity object and that object will be checked from the db and returs exist or not.
I am not using Enityframewrok Code First Here its a Enityframewrok
Bishnu Tewary at 15-Mar-12 3:22am View
Thanks Dylan, your reference link helps me to fix my problem.Its work by simply add this
[System.Web.Mvc.OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]

on the controller action for which i want to disable cache. Th

Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid