table look up value class in base class?

H

hazz

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;
}
}
 
H

hazz

Sure

[OperationContract]
BindingList<LookupValue> LeadType_SelectAll();


public BindingList<LookupValue> GetAllSpecificLookUpTableTypes()
{
InitSvc();
return m_CustSvc.LeadType_SelectAll();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top