Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
[Table(Name = "dbo.tblProjects")]
public class ProjectsDto
{
private int _prjId;
[Column(Storage = "_prjId", IsPrimaryKey = true, IsDbGenerated = true)]
public int prjId
{
get { return _prjId; }
set { _prjId = value; }
}
 
private string _projectName;
[Column(Storage = "_projectName")]
public string projectName
{
get { return _projectName; }
set { _projectName = value; }
}
 
private string _prjDescription;
[Column(Storage = "_prjDescription")]
public string prjDescription
{
get { return _prjDescription; }
set { _prjDescription = value; }
}
 
private string _logo;
[Column(Storage = "_logo")]
public string logo
{
get { return _logo; }
set { _logo = value; }
}
private string _prjFriendlyTitle;
[Column(Storage = "_prjFriendlyTitle")]
public string prjFriendlyTitle
{
get { return _prjFriendlyTitle; }
set { _prjFriendlyTitle = value; }
}
 
private int _page_count;
public int page_count
{
get { return _page_count; }
set { _page_count = value; }
}
 
}
 

 
This my class in which the columns from sql table are mapped, but the last entity (page_count) in the above class is not from table. And in the select query I select all the columns from table and one column (page_count) is derived and calculated into the query . But when the data comes into this column is null… why it is ..? can anyone please tell me..?
Posted 28-Jan-13 1:43am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 710
1 OriginalGriff 543
2 Abhinav S 318
3 thatraja 245
4 Emre Ataseven 170
0 Sergey Alexandrovich Kryukov 8,322
1 OriginalGriff 4,790
2 Peter Leow 3,784
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid