using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
namespace Aukcija {
public class DbBroker
{
private string name;
private int bidvalue;
private string product_name;
public int Bidvalue {
get {
return bidvalue;
}
set {
bidvalue = value;
}
}
public string UserName {
get {
return name;
}
set {
name = value;
}
}
public string Name {
get {
return product_name;
}
set {
product_name = value;
}
}
public override string ToString() {
string b = bidvalue.ToString();
return string.Format("Auction : {0} : {1} : {2}", Name, UserName, b); //"Auction : " + Name + " " + UserName + " " + b;
}
public string conn() {
return ConfigurationManager.ConnectionStrings["Connection"].ConnectionString;
}
public string executeQuery() {
return "Select p.name, u.name, a.bidvalue from Products p, Users u, Auctions a where p.name = @name and u.name = @nameu";
}
}
}This code snippet is for Get Set Accessoar In Class Concept App.