Hi bro,
As you are new to .Net you have asked good question. Here is answer for your question step by step:
Step 1: Create a new class library project for your Data Access Layer.
Stet 2 : Add a new class library project to your solution and name it like ModalLayer. Now put your modal class like
'ProductInfo' it will just contain Properties nothing else ok. e.g.
public class ProductInfo
{
public int ProductId {get; set;}
public string ProductName {get; set;}
}
Now you have created class in ModalLayer which contains ProductInfo class, now you just need to put a reference to Data Access Layer Project so that you can have access
to ProductInfo class in Data Access Layer.
Step 3: Add one more class library project to your Solution named like ProductBLL and again put the reference of ModalLayer project to ProductBLL project which can access your ProductInfo class.
Step 4: Now at last create your UI project like ASP.NET or whatever you need like WPF an others. And again put reference of ModalLayer in this project and you can also access ProductInfo class here.
But don't forgot to give reference of DLL to BLL and BLL to UI as well. Now you can pass your data easily from one layer to other.
Thanks