How to pass data from business logic to data layer
-
hi all, Can anyone tell me how to pass data from code behing to data layer, I am using asp.net with c# as code behind Any suggestions would be welcome
Thanks sri
-
hi all, Can anyone tell me how to pass data from code behing to data layer, I am using asp.net with c# as code behind Any suggestions would be welcome
Thanks sri
mukkanti007 wrote:
data from code behing to data layer,
Well, that depends on how your datalayer is. Simple way is pass through parameters. Assume you have a method to get products in the data layer, then it would be like
public string GetProductName(string id)
{
}here you can pass product id as string through the method parameter.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions