473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

table look up value class in base class?

Does it make sense to have this in the base class in a namespace that
includes data objects and service interfaces? thanks. -greg

[DataContract, Description("This class is for binding to lookup lists")]
public class LookupValue
{
private int m_ID;
private string m_Name;
private string m_Description;

[DataMember(IsRequired=true)]
public int ID
{
get
{
return m_ID;
}
set
{
m_ID = value;
}
}

[DataMember(IsRequired = true)]
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = Name = value;
}
}

[DataMember(IsRequired = true)]
public string Description
{
get
{
return m_Description;
}
set
{
m_Description = value;
}
}
Feb 21 '06 #1
1 1492
Sure

[OperationContract]
BindingList<LookupValue> LeadType_SelectAll();
public BindingList<LookupValue> GetAllSpecificLookUpTableTypes()
{
InitSvc();
return m_CustSvc.LeadType_SelectAll();
}
"hazz" <ha**@sonic.net> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Does it make sense to have this in the base class in a namespace that
includes data objects and service interfaces? thanks. -greg

[DataContract, Description("This class is for binding to lookup lists")]
public class LookupValue
{
private int m_ID;
private string m_Name;
private string m_Description;

[DataMember(IsRequired=true)]
public int ID
{
get
{
return m_ID;
}
set
{
m_ID = value;
}
}

[DataMember(IsRequired = true)]
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = Name = value;
}
}

[DataMember(IsRequired = true)]
public string Description
{
get
{
return m_Description;
}
set
{
m_Description = value;
}
}

Feb 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: DaKoadMunky | last post by:
I was recently looking at some assembly code generated by my compiler. When examining the assembly code associated with constructors I noticed that the dynamic-dispatch mechanism was enabled...
5
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I...
1
by: relient | last post by:
I'm learning about the virtual table in association with virtual methods. I got most of the logic and understanding down (I believe) for when you use 'override' and no 'override' or no 'new'...
12
by: sojin | last post by:
Hi all, I'm a new to c++... and I've some doubts on "virtual" topics. 1) Can abstract base class have V-table? Here's the way,, Class CTemp{
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.