Data delay load and the Special Bind Table
Code:
namespace BusinessLogic.BusinessObject
{
[Serializable]
[System.Data.Linq.Mapping.Table(Name = "Task")]
public class BusiTask : KLimsCore.Model.Task
{
private BusiSampleCollection busiSamples;
public BusiSampleCollection BusiSamples
{
get
{
if (busiSamples == null)
{
busiSamples = new BusiSampleCollection();
if (this.ID != 0)
{
busiSamples.FillCollection("TaskID=" + this.ID.ToString());
}
}
return busiSamples;
}
set
{
busiSamples = value;
}
}
public override string GetTableName()
{
return base.GetTableName();
}
}
}
Important in:
get
{
if (busiSamples == null)
{
busiSamples = new BusiSampleCollection();
if (this.ID != 0)
{
busiSamples.FillCollection("TaskID=" + this.ID.ToString());
}
}
return busiSamples;
}
In Addition:
[System.Data.Linq.Mapping.Table(Name = "Task")]
It's point which Table for bind the code.
http://anforen.5d6d.com
Subscribe to:
Post Comments (Atom)
Search This Blog
Labels
news
China
society
Cheng Du
chengdu
live
economy
EARTH
Sichuan
entertainment
health
ET
dnn
medicine
tip
Children
Olympic Games
SOS
Tibet
module
school
ACTIVEX
RMB
Tibet incident
WSS
acupuncture
banting
compare
cure
enterprise forms
herbalist doctor
industry
integration
internet
meaningful
optimizing
question
.net
AIM / AOL
Android 灭鼠
Android 猪
CPPCC
Data delay load
Differencing disks
GoogleTalk
Holidays
ICQ
IM
IT
Interpersonal
MSDN programmer
MSN
NewSID
PLANET
Phishing
QQ
Session
TUS 翻墙 GFW
Traffic
Translation
UFO
VPC
What is the most regret in life
YAHOO
advantage
android
answer
aphorism
blog
born
business
cancer
conclusion
discuss
extraordinary memory
festival
film
fish
fo
fun
help
human
interesting
man
match
microsoft
music
new theory
old
photo
pidgin
plan
power
problem
procreate
relations
say
sharepoint
sid
solve
template
test
version
vs2010
wangboqiang
woman
words
四角号码在线查询
墙 GFW Android
开发 vs2008 vss2005 win2008
No comments:
Post a Comment