Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Bounty
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
GetSet Accessoar
WhatsApp
Igor Djuricic
Jul 24
2016
749
0
1
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"
;
}
}
}
Accessoar
C#