471,305 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 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 1438
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by DaKoadMunky | last post: by
5 posts views Thread by PAUL | last post: by
1 post views Thread by relient | last post: by
reply views Thread by rosydwin | last post: by

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.