Hi Guys,
Strongly typed custum classes can be Replaced with Generic Classes, While Retriving the data from SQlserver/oracle... eg If we have 50,000 Records Using datasets will be more TimeConsuming!!! , of course by writing sql query using ROW_NUMBER() keyword
Can any one guide me how can we USE generics instead srongly typed custum classes...
in BusinessLogic Layer...
is this correct way to define generics class?
fOr eg:we have property class like this
Public Class Student
{
private string _Name;
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
}
}
private string _LocationName;
public string Location_Name
{
get
{
return _LocationName;
}
set
{
_LocationName = value;
}
}
---------------------
Public Class StudentList: List<Student>
{ }
AND then in DAL of course we can use this to Class to Retrive Results
I have gone thourgh the Aritcles oF IMAR SPANJARS 3 teir Arcitecture.. suggest me improved one...
Is this Enough to implement Generics class in BL layer???
How can impose constraints in Generic Classes??