mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Refactpr field names.
This commit is contained in:
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddAdmin(Admin entry, out long id)
|
public bool AddAdmin(Admin entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding admin `{0}`...", entry.user);
|
Console.Write("Adding admin `{0}`...", entry.Username);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandAdmin(entry);
|
IDbCommand dbcmd = GetCommandAdmin(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateAdmin(Admin entry)
|
public bool UpdateAdmin(Admin entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating admin `{0}`...", entry.user);
|
Console.WriteLine("Updating admin `{0}`...", entry.Username);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandAdmin(entry);
|
IDbCommand dbcmd = GetCommandAdmin(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE admin SET user = @user, password = @password " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE admin SET user = @user, password = @password " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -260,8 +260,8 @@ namespace Cicm.Database
|
|||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
param2.DbType = DbType.String;
|
param2.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.user;
|
param1.Value = entry.Username;
|
||||||
param2.Value = entry.password;
|
param2.Value = entry.Password;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -277,9 +277,9 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Admin entry = new Admin
|
Admin entry = new Admin
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
user = dataRow["user"].ToString(),
|
Username = dataRow["user"].ToString(),
|
||||||
password = dataRow["password"].ToString()
|
Password = dataRow["password"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddBrowserTest(BrowserTest entry, out long id)
|
public bool AddBrowserTest(BrowserTest entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding browser test `{0}`...", entry.idstring);
|
Console.Write("Adding browser test `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandBrowserTest(entry);
|
IDbCommand dbcmd = GetCommandBrowserTest(entry);
|
||||||
@@ -205,7 +205,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateBrowserTest(BrowserTest entry)
|
public bool UpdateBrowserTest(BrowserTest entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating browser test `{0}`...", entry.idstring);
|
Console.WriteLine("Updating browser test `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandBrowserTest(entry);
|
IDbCommand dbcmd = GetCommandBrowserTest(entry);
|
||||||
@@ -215,7 +215,7 @@ namespace Cicm.Database
|
|||||||
string sql =
|
string sql =
|
||||||
"UPDATE browser_test SET idstring = @idstring, browser = @browser, version = @version, os = @os, platform = @platform, gif87 = @gif87, " +
|
"UPDATE browser_test SET idstring = @idstring, browser = @browser, version = @version, os = @os, platform = @platform, gif87 = @gif87, " +
|
||||||
"gif89 = @gif89, jpeg = @jpeg, png = @png, pngt = @pngt, agif = @agif, table = @table, colors = @colors, js = @js, frames = @frames, flash = @flash " +
|
"gif89 = @gif89, jpeg = @jpeg, png = @png, pngt = @pngt, agif = @agif, table = @table, colors = @colors, js = @js, frames = @frames, flash = @flash " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -307,22 +307,22 @@ namespace Cicm.Database
|
|||||||
param15.DbType = DbType.Boolean;
|
param15.DbType = DbType.Boolean;
|
||||||
param16.DbType = DbType.Boolean;
|
param16.DbType = DbType.Boolean;
|
||||||
|
|
||||||
param1.Value = entry.idstring;
|
param1.Value = entry.UserAgent;
|
||||||
param2.Value = entry.browser;
|
param2.Value = entry.Name;
|
||||||
param3.Value = entry.version;
|
param3.Value = entry.Version;
|
||||||
param4.Value = entry.os;
|
param4.Value = entry.OperatingSystem;
|
||||||
param5.Value = entry.platform;
|
param5.Value = entry.Architecture;
|
||||||
param6.Value = entry.gif87;
|
param6.Value = entry.Gif87;
|
||||||
param7.Value = entry.gif89;
|
param7.Value = entry.Gif89;
|
||||||
param8.Value = entry.jpeg;
|
param8.Value = entry.Jpeg;
|
||||||
param9.Value = entry.png;
|
param9.Value = entry.Png;
|
||||||
param10.Value = entry.pngt;
|
param10.Value = entry.AlphaPng;
|
||||||
param11.Value = entry.agif;
|
param11.Value = entry.AnimatedGif;
|
||||||
param12.Value = entry.table;
|
param12.Value = entry.Tables;
|
||||||
param13.Value = entry.colors;
|
param13.Value = entry.Color;
|
||||||
param14.Value = entry.js;
|
param14.Value = entry.Js;
|
||||||
param15.Value = entry.frames;
|
param15.Value = entry.Frames;
|
||||||
param16.Value = entry.flash;
|
param16.Value = entry.Flash;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -352,23 +352,23 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
BrowserTest entry = new BrowserTest
|
BrowserTest entry = new BrowserTest
|
||||||
{
|
{
|
||||||
id = ushort.Parse(dataRow["id"].ToString()),
|
Id = ushort.Parse(dataRow["id"].ToString()),
|
||||||
idstring = dataRow["idstring"].ToString(),
|
UserAgent = dataRow["idstring"].ToString(),
|
||||||
browser = dataRow["browser"].ToString(),
|
Name = dataRow["browser"].ToString(),
|
||||||
version = dataRow["version"].ToString(),
|
Version = dataRow["version"].ToString(),
|
||||||
os = dataRow["os"].ToString(),
|
OperatingSystem = dataRow["os"].ToString(),
|
||||||
platform = dataRow["platform"].ToString(),
|
Architecture = dataRow["platform"].ToString(),
|
||||||
gif87 = bool.Parse(dataRow["gif87"].ToString()),
|
Gif87 = bool.Parse(dataRow["gif87"].ToString()),
|
||||||
gif89 = bool.Parse(dataRow["gif89"].ToString()),
|
Gif89 = bool.Parse(dataRow["gif89"].ToString()),
|
||||||
jpeg = bool.Parse(dataRow["jpeg"].ToString()),
|
Jpeg = bool.Parse(dataRow["jpeg"].ToString()),
|
||||||
png = bool.Parse(dataRow["png"].ToString()),
|
Png = bool.Parse(dataRow["png"].ToString()),
|
||||||
pngt = bool.Parse(dataRow["pngt"].ToString()),
|
AlphaPng = bool.Parse(dataRow["pngt"].ToString()),
|
||||||
agif = bool.Parse(dataRow["agif"].ToString()),
|
AnimatedGif = bool.Parse(dataRow["agif"].ToString()),
|
||||||
table = bool.Parse(dataRow["table"].ToString()),
|
Tables = bool.Parse(dataRow["table"].ToString()),
|
||||||
colors = bool.Parse(dataRow["colors"].ToString()),
|
Color = bool.Parse(dataRow["colors"].ToString()),
|
||||||
js = bool.Parse(dataRow["js"].ToString()),
|
Js = bool.Parse(dataRow["js"].ToString()),
|
||||||
frames = bool.Parse(dataRow["frames"].ToString()),
|
Frames = bool.Parse(dataRow["frames"].ToString()),
|
||||||
flash = bool.Parse(dataRow["flash"].ToString())
|
Flash = bool.Parse(dataRow["flash"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddCompany(Company entry, out long id)
|
public bool AddCompany(Company entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding company `{0}`...", entry.Compania);
|
Console.Write("Adding company `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandCompany(entry);
|
IDbCommand dbcmd = GetCommandCompany(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateCompany(Company entry)
|
public bool UpdateCompany(Company entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating company `{0}`...", entry.Compania);
|
Console.WriteLine("Updating company `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandCompany(entry);
|
IDbCommand dbcmd = GetCommandCompany(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE Companias SET Compania = @Compania " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE Companias SET Compania = @Compania " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.Compania;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -272,8 +272,8 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Company entry = new Company
|
Company entry = new Company
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
Compania = dataRow["Compania"].ToString()
|
Name = dataRow["Compania"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddComputer(Computer entry, out long id)
|
public bool AddComputer(Computer entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding computer `{0}`...", entry.model);
|
Console.Write("Adding computer `{0}`...", entry.Model);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandComputer(entry);
|
IDbCommand dbcmd = GetCommandComputer(entry);
|
||||||
@@ -205,7 +205,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateComputer(Computer entry)
|
public bool UpdateComputer(Computer entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating computer `{0}`...", entry.model);
|
Console.WriteLine("Updating computer `{0}`...", entry.Model);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandComputer(entry);
|
IDbCommand dbcmd = GetCommandComputer(entry);
|
||||||
@@ -216,7 +216,7 @@ namespace Cicm.Database
|
|||||||
"UPDATE computers SET company = @company, year = @year, model = @model, cpu1 = @cpu1, mhz1 = @mhz1, cpu2 = @cpu2, " +
|
"UPDATE computers SET company = @company, year = @year, model = @model, cpu1 = @cpu1, mhz1 = @mhz1, cpu2 = @cpu2, " +
|
||||||
"mhz2 = @mhz2, bits = @bits, ram = @ram, rom = @rom, gpu = @gpu, vram = @vram, colors = @colors, res = @res, spu = @spu, mpu = @mpu " +
|
"mhz2 = @mhz2, bits = @bits, ram = @ram, rom = @rom, gpu = @gpu, vram = @vram, colors = @colors, res = @res, spu = @spu, mpu = @mpu " +
|
||||||
"sound_channels = @sound_channels, music_channels = @music_channels, hdd1 = @hdd1, hdd2 = @hdd2, hdd3 = @hdd3, disk1 = @disk1, cap1 = @cap1, disk2 = @disk2, cap2 = @cap2, comment = @comment " +
|
"sound_channels = @sound_channels, music_channels = @music_channels, hdd1 = @hdd1, hdd2 = @hdd2, hdd3 = @hdd3, disk1 = @disk1, cap1 = @cap1, disk2 = @disk2, cap2 = @cap2, comment = @comment " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -338,32 +338,32 @@ namespace Cicm.Database
|
|||||||
param25.DbType = DbType.String;
|
param25.DbType = DbType.String;
|
||||||
param26.DbType = DbType.String;
|
param26.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.company;
|
param1.Value = entry.Company;
|
||||||
param2.Value = entry.year;
|
param2.Value = entry.Year;
|
||||||
param3.Value = entry.model;
|
param3.Value = entry.Model;
|
||||||
param4.Value = entry.cpu1;
|
param4.Value = entry.Cpu1;
|
||||||
param5.Value = entry.mhz1;
|
param5.Value = entry.Mhz1;
|
||||||
param6.Value = entry.cpu2;
|
param6.Value = entry.Cpu2;
|
||||||
param7.Value = entry.mhz2;
|
param7.Value = entry.Mhz2;
|
||||||
param8.Value = entry.bits;
|
param8.Value = entry.Bits;
|
||||||
param9.Value = entry.ram;
|
param9.Value = entry.Ram;
|
||||||
param10.Value = entry.rom;
|
param10.Value = entry.Rom;
|
||||||
param11.Value = entry.gpu;
|
param11.Value = entry.Gpu;
|
||||||
param12.Value = entry.vram;
|
param12.Value = entry.Vram;
|
||||||
param13.Value = entry.colors;
|
param13.Value = entry.Colors;
|
||||||
param14.Value = entry.res;
|
param14.Value = entry.Resolution;
|
||||||
param15.Value = entry.spu;
|
param15.Value = entry.Spu;
|
||||||
param16.Value = entry.mpu;
|
param16.Value = entry.Mpu;
|
||||||
param17.Value = entry.sound_channels;
|
param17.Value = entry.SoundChannels;
|
||||||
param18.Value = entry.music_channels;
|
param18.Value = entry.MusicChannels;
|
||||||
param19.Value = entry.hdd1;
|
param19.Value = entry.Hdd1;
|
||||||
param20.Value = entry.hdd2;
|
param20.Value = entry.Hdd2;
|
||||||
param21.Value = entry.hdd3;
|
param21.Value = entry.Hdd3;
|
||||||
param22.Value = entry.disk1;
|
param22.Value = entry.Disk1;
|
||||||
param23.Value = entry.cap1;
|
param23.Value = entry.Cap1;
|
||||||
param24.Value = entry.disk2;
|
param24.Value = entry.Disk2;
|
||||||
param25.Value = entry.cap2;
|
param25.Value = entry.Cap2;
|
||||||
param26.Value = entry.comment;
|
param26.Value = entry.Comment;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -403,33 +403,33 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Computer entry = new Computer
|
Computer entry = new Computer
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
company = int.Parse(dataRow["company"].ToString()),
|
Company = int.Parse(dataRow["company"].ToString()),
|
||||||
year = int.Parse(dataRow["year"].ToString()),
|
Year = int.Parse(dataRow["year"].ToString()),
|
||||||
model = dataRow["model"].ToString(),
|
Model = dataRow["model"].ToString(),
|
||||||
cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
Cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
||||||
mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
Mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
||||||
cpu2 = int.Parse(dataRow["cpu2"].ToString()),
|
Cpu2 = int.Parse(dataRow["cpu2"].ToString()),
|
||||||
mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
Mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
||||||
bits = int.Parse(dataRow["bits"].ToString()),
|
Bits = int.Parse(dataRow["bits"].ToString()),
|
||||||
ram = int.Parse(dataRow["ram"].ToString()),
|
Ram = int.Parse(dataRow["ram"].ToString()),
|
||||||
rom = int.Parse(dataRow["rom"].ToString()),
|
Rom = int.Parse(dataRow["rom"].ToString()),
|
||||||
gpu = int.Parse(dataRow["gpu"].ToString()),
|
Gpu = int.Parse(dataRow["gpu"].ToString()),
|
||||||
vram = int.Parse(dataRow["vram"].ToString()),
|
Vram = int.Parse(dataRow["vram"].ToString()),
|
||||||
colors = int.Parse(dataRow["colors"].ToString()),
|
Colors = int.Parse(dataRow["colors"].ToString()),
|
||||||
res = dataRow["res"].ToString(),
|
Resolution = dataRow["res"].ToString(),
|
||||||
spu = int.Parse(dataRow["spu"].ToString()),
|
Spu = int.Parse(dataRow["spu"].ToString()),
|
||||||
mpu = int.Parse(dataRow["mpu"].ToString()),
|
Mpu = int.Parse(dataRow["mpu"].ToString()),
|
||||||
sound_channels = int.Parse(dataRow["sound_channels"].ToString()),
|
SoundChannels = int.Parse(dataRow["sound_channels"].ToString()),
|
||||||
music_channels = int.Parse(dataRow["music_channels"].ToString()),
|
MusicChannels = int.Parse(dataRow["music_channels"].ToString()),
|
||||||
hdd1 = int.Parse(dataRow["hdd1"].ToString()),
|
Hdd1 = int.Parse(dataRow["hdd1"].ToString()),
|
||||||
hdd2 = int.Parse(dataRow["hdd2"].ToString()),
|
Hdd2 = int.Parse(dataRow["hdd2"].ToString()),
|
||||||
hdd3 = int.Parse(dataRow["hdd3"].ToString()),
|
Hdd3 = int.Parse(dataRow["hdd3"].ToString()),
|
||||||
disk1 = int.Parse(dataRow["disk1"].ToString()),
|
Disk1 = int.Parse(dataRow["disk1"].ToString()),
|
||||||
cap1 = dataRow["cap1"].ToString(),
|
Cap1 = dataRow["cap1"].ToString(),
|
||||||
disk2 = int.Parse(dataRow["disk2"].ToString()),
|
Disk2 = int.Parse(dataRow["disk2"].ToString()),
|
||||||
cap2 = dataRow["cap2"].ToString(),
|
Cap2 = dataRow["cap2"].ToString(),
|
||||||
comment = dataRow["comment"].ToString()
|
Comment = dataRow["comment"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ namespace Cicm.Database
|
|||||||
public bool AddConsole(Console entry, out long id)
|
public bool AddConsole(Console entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Console.Write("Adding console `{0}`...", entry.name);
|
System.Console.Write("Adding console `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandConsole(entry);
|
IDbCommand dbcmd = GetCommandConsole(entry);
|
||||||
@@ -204,7 +204,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateConsole(Console entry)
|
public bool UpdateConsole(Console entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Console.WriteLine("Updating console `{0}`...", entry.name);
|
System.Console.WriteLine("Updating console `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandConsole(entry);
|
IDbCommand dbcmd = GetCommandConsole(entry);
|
||||||
@@ -215,7 +215,7 @@ namespace Cicm.Database
|
|||||||
"UPDATE consoles SET company = @company, year = @year, name = @name, cpu1 = @cpu1, mhz1 = @mhz1, cpu2 = @cpu2, " +
|
"UPDATE consoles SET company = @company, year = @year, name = @name, cpu1 = @cpu1, mhz1 = @mhz1, cpu2 = @cpu2, " +
|
||||||
"mhz2 = @mhz2, bits = @bits, ram = @ram, rom = @rom, gpu = @gpu, vram = @vram, colors = @colors, res = @res, spu = @spu, mpu = @mpu " +
|
"mhz2 = @mhz2, bits = @bits, ram = @ram, rom = @rom, gpu = @gpu, vram = @vram, colors = @colors, res = @res, spu = @spu, mpu = @mpu " +
|
||||||
"schannels = @schannels, mchannels = @mchannels, palette = @palette, format = @format, cap = @cap, comments = @comments " +
|
"schannels = @schannels, mchannels = @mchannels, palette = @palette, format = @format, cap = @cap, comments = @comments " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -325,28 +325,28 @@ namespace Cicm.Database
|
|||||||
param21.DbType = DbType.Int32;
|
param21.DbType = DbType.Int32;
|
||||||
param22.DbType = DbType.String;
|
param22.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.company;
|
param1.Value = entry.Company;
|
||||||
param2.Value = entry.year;
|
param2.Value = entry.Year;
|
||||||
param3.Value = entry.name;
|
param3.Value = entry.Name;
|
||||||
param4.Value = entry.cpu1;
|
param4.Value = entry.Cpu1;
|
||||||
param5.Value = entry.mhz1;
|
param5.Value = entry.Mhz1;
|
||||||
param6.Value = entry.cpu2;
|
param6.Value = entry.Cpu2;
|
||||||
param7.Value = entry.mhz2;
|
param7.Value = entry.Mhz2;
|
||||||
param8.Value = entry.bits;
|
param8.Value = entry.Bits;
|
||||||
param9.Value = entry.ram;
|
param9.Value = entry.Ram;
|
||||||
param10.Value = entry.rom;
|
param10.Value = entry.Rom;
|
||||||
param11.Value = entry.gpu;
|
param11.Value = entry.Gpu;
|
||||||
param12.Value = entry.vram;
|
param12.Value = entry.Vram;
|
||||||
param13.Value = entry.colors;
|
param13.Value = entry.Colors;
|
||||||
param14.Value = entry.res;
|
param14.Value = entry.Resolution;
|
||||||
param15.Value = entry.spu;
|
param15.Value = entry.Spu;
|
||||||
param16.Value = entry.mpu;
|
param16.Value = entry.Mpu;
|
||||||
param17.Value = entry.schannels;
|
param17.Value = entry.SoundChannels;
|
||||||
param18.Value = entry.mchannels;
|
param18.Value = entry.MusicChannels;
|
||||||
param19.Value = entry.palette;
|
param19.Value = entry.Palette;
|
||||||
param20.Value = entry.format;
|
param20.Value = entry.Format;
|
||||||
param21.Value = entry.cap;
|
param21.Value = entry.Cap;
|
||||||
param22.Value = entry.comments;
|
param22.Value = entry.Comments;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -382,29 +382,29 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Console entry = new Console
|
Console entry = new Console
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
company = int.Parse(dataRow["company"].ToString()),
|
Company = int.Parse(dataRow["company"].ToString()),
|
||||||
year = int.Parse(dataRow["year"].ToString()),
|
Year = int.Parse(dataRow["year"].ToString()),
|
||||||
name = dataRow["name"].ToString(),
|
Name = dataRow["name"].ToString(),
|
||||||
cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
Cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
||||||
mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
Mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
||||||
cpu2 = int.Parse(dataRow["cpu2"].ToString()),
|
Cpu2 = int.Parse(dataRow["cpu2"].ToString()),
|
||||||
mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
Mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
||||||
bits = int.Parse(dataRow["bits"].ToString()),
|
Bits = int.Parse(dataRow["bits"].ToString()),
|
||||||
ram = int.Parse(dataRow["ram"].ToString()),
|
Ram = int.Parse(dataRow["ram"].ToString()),
|
||||||
rom = int.Parse(dataRow["rom"].ToString()),
|
Rom = int.Parse(dataRow["rom"].ToString()),
|
||||||
gpu = int.Parse(dataRow["gpu"].ToString()),
|
Gpu = int.Parse(dataRow["gpu"].ToString()),
|
||||||
vram = int.Parse(dataRow["vram"].ToString()),
|
Vram = int.Parse(dataRow["vram"].ToString()),
|
||||||
colors = int.Parse(dataRow["colors"].ToString()),
|
Colors = int.Parse(dataRow["colors"].ToString()),
|
||||||
res = dataRow["res"].ToString(),
|
Resolution = dataRow["res"].ToString(),
|
||||||
spu = int.Parse(dataRow["spu"].ToString()),
|
Spu = int.Parse(dataRow["spu"].ToString()),
|
||||||
mpu = int.Parse(dataRow["mpu"].ToString()),
|
Mpu = int.Parse(dataRow["mpu"].ToString()),
|
||||||
schannels = int.Parse(dataRow["schannels"].ToString()),
|
SoundChannels = int.Parse(dataRow["schannels"].ToString()),
|
||||||
mchannels = int.Parse(dataRow["mchannels"].ToString()),
|
MusicChannels = int.Parse(dataRow["mchannels"].ToString()),
|
||||||
palette = int.Parse(dataRow["palette"].ToString()),
|
Palette = int.Parse(dataRow["palette"].ToString()),
|
||||||
format = int.Parse(dataRow["format"].ToString()),
|
Format = int.Parse(dataRow["format"].ToString()),
|
||||||
cap = int.Parse(dataRow["cap"].ToString()),
|
Cap = int.Parse(dataRow["cap"].ToString()),
|
||||||
comments = dataRow["comments"].ToString()
|
Comments = dataRow["comments"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddConsoleCompany(ConsoleCompany entry, out long id)
|
public bool AddConsoleCompany(ConsoleCompany entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding console company `{0}`...", entry.company);
|
Console.Write("Adding console company `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandConsoleCompany(entry);
|
IDbCommand dbcmd = GetCommandConsoleCompany(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateConsoleCompany(ConsoleCompany entry)
|
public bool UpdateConsoleCompany(ConsoleCompany entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating console company `{0}`...", entry.company);
|
Console.WriteLine("Updating console company `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandConsoleCompany(entry);
|
IDbCommand dbcmd = GetCommandConsoleCompany(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE console_company SET company = @company " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE console_company SET company = @company " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.company;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -272,8 +272,8 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
ConsoleCompany entry = new ConsoleCompany
|
ConsoleCompany entry = new ConsoleCompany
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
company = dataRow["company"].ToString()
|
Name = dataRow["company"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddCpu(Cpu entry, out long id)
|
public bool AddCpu(Cpu entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding CPU `{0}`...", entry.cpu);
|
Console.Write("Adding CPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandCpu(entry);
|
IDbCommand dbcmd = GetCommandCpu(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateCpu(Cpu entry)
|
public bool UpdateCpu(Cpu entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating CPU `{0}`...", entry.cpu);
|
Console.WriteLine("Updating CPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandCpu(entry);
|
IDbCommand dbcmd = GetCommandCpu(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE cpu SET cpu = @cpu " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE cpu SET cpu = @cpu " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.cpu;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -270,7 +270,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
foreach(DataRow dataRow in dataTable.Rows)
|
foreach(DataRow dataRow in dataTable.Rows)
|
||||||
{
|
{
|
||||||
Cpu entry = new Cpu {id = int.Parse(dataRow["id"].ToString()), cpu = dataRow["cpu"].ToString()};
|
Cpu entry = new Cpu {Id = int.Parse(dataRow["id"].ToString()), Name = dataRow["cpu"].ToString()};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddDiskFormat(DiskFormat entry, out long id)
|
public bool AddDiskFormat(DiskFormat entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding disk format `{0}`...", entry.Format);
|
Console.Write("Adding disk format `{0}`...", entry.Description);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandDiskFormat(entry);
|
IDbCommand dbcmd = GetCommandDiskFormat(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateDiskFormat(DiskFormat entry)
|
public bool UpdateDiskFormat(DiskFormat entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating disk format `{0}`...", entry.Format);
|
Console.WriteLine("Updating disk format `{0}`...", entry.Description);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandDiskFormat(entry);
|
IDbCommand dbcmd = GetCommandDiskFormat(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE Formatos_de_disco SET Format = @Format " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE Formatos_de_disco SET Format = @Format " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.Format;
|
param1.Value = entry.Description;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -272,8 +272,8 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
DiskFormat entry = new DiskFormat
|
DiskFormat entry = new DiskFormat
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
Format = dataRow["Format"].ToString()
|
Description = dataRow["Format"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddDsp(Dsp entry, out long id)
|
public bool AddDsp(Dsp entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding DSP `{0}`...", entry.DSP);
|
Console.Write("Adding DSP `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandDsp(entry);
|
IDbCommand dbcmd = GetCommandDsp(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateDsp(Dsp entry)
|
public bool UpdateDsp(Dsp entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating DSP `{0}`...", entry.DSP);
|
Console.WriteLine("Updating DSP `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandDsp(entry);
|
IDbCommand dbcmd = GetCommandDsp(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE DSPs SET DSP = @DSP " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE DSPs SET DSP = @DSP " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.DSP;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -270,7 +270,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
foreach(DataRow dataRow in dataTable.Rows)
|
foreach(DataRow dataRow in dataTable.Rows)
|
||||||
{
|
{
|
||||||
Dsp entry = new Dsp {id = int.Parse(dataRow["id"].ToString()), DSP = dataRow["DSP"].ToString()};
|
Dsp entry = new Dsp {Id = int.Parse(dataRow["id"].ToString()), Name = dataRow["DSP"].ToString()};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddForbidden(Forbidden entry, out long id)
|
public bool AddForbidden(Forbidden entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding forbidden `{0}`...", entry.browser);
|
Console.Write("Adding forbidden `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandForbidden(entry);
|
IDbCommand dbcmd = GetCommandForbidden(entry);
|
||||||
@@ -204,7 +204,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateForbidden(Forbidden entry)
|
public bool UpdateForbidden(Forbidden entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating forbidden `{0}`...", entry.browser);
|
Console.WriteLine("Updating forbidden `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandForbidden(entry);
|
IDbCommand dbcmd = GetCommandForbidden(entry);
|
||||||
@@ -212,7 +212,7 @@ namespace Cicm.Database
|
|||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE forbidden SET browser = @browser, date = @date, ip = @ip, referer = @referer " +
|
string sql = "UPDATE forbidden SET browser = @browser, date = @date, ip = @ip, referer = @referer " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -268,10 +268,10 @@ namespace Cicm.Database
|
|||||||
param3.DbType = DbType.String;
|
param3.DbType = DbType.String;
|
||||||
param4.DbType = DbType.String;
|
param4.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.browser;
|
param1.Value = entry.UserAgent;
|
||||||
param2.Value = entry.date;
|
param2.Value = entry.Date;
|
||||||
param3.Value = entry.ip;
|
param3.Value = entry.Ip;
|
||||||
param4.Value = entry.referer;
|
param4.Value = entry.Referer;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -289,11 +289,11 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Forbidden entry = new Forbidden
|
Forbidden entry = new Forbidden
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
browser = dataRow["browser"].ToString(),
|
UserAgent = dataRow["browser"].ToString(),
|
||||||
date = dataRow["date"].ToString(),
|
Date = dataRow["date"].ToString(),
|
||||||
ip = dataRow["ip"].ToString(),
|
Ip = dataRow["ip"].ToString(),
|
||||||
referer = dataRow["referer"].ToString()
|
Referer = dataRow["referer"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddGpu(Gpu entry, out long id)
|
public bool AddGpu(Gpu entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding GPU `{0}`...", entry.gpu);
|
Console.Write("Adding GPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandGpu(entry);
|
IDbCommand dbcmd = GetCommandGpu(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateGpu(Gpu entry)
|
public bool UpdateGpu(Gpu entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating GPU `{0}`...", entry.gpu);
|
Console.WriteLine("Updating GPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandGpu(entry);
|
IDbCommand dbcmd = GetCommandGpu(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE gpus SET GPU = @GPU " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE gpus SET GPU = @GPU " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.gpu;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -270,7 +270,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
foreach(DataRow dataRow in dataTable.Rows)
|
foreach(DataRow dataRow in dataTable.Rows)
|
||||||
{
|
{
|
||||||
Gpu entry = new Gpu {id = int.Parse(dataRow["id"].ToString()), gpu = dataRow["GPU"].ToString()};
|
Gpu entry = new Gpu {Id = int.Parse(dataRow["id"].ToString()), Name = dataRow["GPU"].ToString()};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddLog(Log entry, out long id)
|
public bool AddLog(Log entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding log `{0}`...", entry.browser);
|
Console.Write("Adding log `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandLog(entry);
|
IDbCommand dbcmd = GetCommandLog(entry);
|
||||||
@@ -204,7 +204,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateLog(Log entry)
|
public bool UpdateLog(Log entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating log `{0}`...", entry.browser);
|
Console.WriteLine("Updating log `{0}`...", entry.UserAgent);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandLog(entry);
|
IDbCommand dbcmd = GetCommandLog(entry);
|
||||||
@@ -212,7 +212,7 @@ namespace Cicm.Database
|
|||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE log SET browser = @browser, date = @date, ip = @ip, referer = @referer " +
|
string sql = "UPDATE log SET browser = @browser, date = @date, ip = @ip, referer = @referer " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -268,10 +268,10 @@ namespace Cicm.Database
|
|||||||
param3.DbType = DbType.String;
|
param3.DbType = DbType.String;
|
||||||
param4.DbType = DbType.String;
|
param4.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.browser;
|
param1.Value = entry.UserAgent;
|
||||||
param2.Value = entry.date;
|
param2.Value = entry.Date;
|
||||||
param3.Value = entry.ip;
|
param3.Value = entry.Ip;
|
||||||
param4.Value = entry.referer;
|
param4.Value = entry.Referer;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -289,11 +289,11 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Log entry = new Log
|
Log entry = new Log
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
browser = dataRow["browser"].ToString(),
|
UserAgent = dataRow["browser"].ToString(),
|
||||||
date = dataRow["date"].ToString(),
|
Date = dataRow["date"].ToString(),
|
||||||
ip = dataRow["ip"].ToString(),
|
Ip = dataRow["ip"].ToString(),
|
||||||
referer = dataRow["referer"].ToString()
|
Referer = dataRow["referer"].ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddMoneyDonation(MoneyDonation entry, out long id)
|
public bool AddMoneyDonation(MoneyDonation entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding money_donation `{0}` for `{1}`...", entry.donator, entry.quantity);
|
Console.Write("Adding money_donation `{0}` for `{1}`...", entry.Donator, entry.Quantity);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandMoneyDonation(entry);
|
IDbCommand dbcmd = GetCommandMoneyDonation(entry);
|
||||||
@@ -203,7 +203,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateMoneyDonation(MoneyDonation entry)
|
public bool UpdateMoneyDonation(MoneyDonation entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating money_donation `{0}`...", entry.donator);
|
Console.WriteLine("Updating money_donation `{0}`...", entry.Donator);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandMoneyDonation(entry);
|
IDbCommand dbcmd = GetCommandMoneyDonation(entry);
|
||||||
@@ -211,7 +211,7 @@ namespace Cicm.Database
|
|||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE money_donation SET donator = @donator, quantity = @quantity " +
|
string sql = "UPDATE money_donation SET donator = @donator, quantity = @quantity " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -261,8 +261,8 @@ namespace Cicm.Database
|
|||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
param2.DbType = DbType.Double;
|
param2.DbType = DbType.Double;
|
||||||
|
|
||||||
param1.Value = entry.donator;
|
param1.Value = entry.Donator;
|
||||||
param2.Value = entry.quantity;
|
param2.Value = entry.Quantity;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -278,9 +278,9 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
MoneyDonation entry = new MoneyDonation
|
MoneyDonation entry = new MoneyDonation
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
donator = dataRow["browser"].ToString(),
|
Donator = dataRow["browser"].ToString(),
|
||||||
quantity = float.Parse(dataRow["date"].ToString())
|
Quantity = float.Parse(dataRow["date"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddMpu(Mpu entry, out long id)
|
public bool AddMpu(Mpu entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding MPU `{0}`...", entry.mpu);
|
Console.Write("Adding MPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandMpu(entry);
|
IDbCommand dbcmd = GetCommandMpu(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateMpu(Mpu entry)
|
public bool UpdateMpu(Mpu entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating MPU `{0}`...", entry.mpu);
|
Console.WriteLine("Updating MPU `{0}`...", entry.Name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandMpu(entry);
|
IDbCommand dbcmd = GetCommandMpu(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE mpus SET MPU = @MPU " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE mpus SET MPU = @MPU " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
param1.DbType = DbType.String;
|
param1.DbType = DbType.String;
|
||||||
|
|
||||||
param1.Value = entry.mpu;
|
param1.Value = entry.Name;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
|
|
||||||
@@ -265,7 +265,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
foreach(DataRow dataRow in dataTable.Rows)
|
foreach(DataRow dataRow in dataTable.Rows)
|
||||||
{
|
{
|
||||||
Mpu entry = new Mpu {id = int.Parse(dataRow["id"].ToString()), mpu = dataRow["MPU"].ToString()};
|
Mpu entry = new Mpu {Id = int.Parse(dataRow["id"].ToString()), Name = dataRow["MPU"].ToString()};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddNews(News entry, out long id)
|
public bool AddNews(News entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding news `{0}`...", entry.date);
|
Console.Write("Adding news `{0}`...", entry.Date);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandNews(entry);
|
IDbCommand dbcmd = GetCommandNews(entry);
|
||||||
@@ -203,14 +203,14 @@ namespace Cicm.Database
|
|||||||
public bool UpdateNews(News entry)
|
public bool UpdateNews(News entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating news `{0}`...", entry.date);
|
Console.WriteLine("Updating news `{0}`...", entry.Date);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandNews(entry);
|
IDbCommand dbcmd = GetCommandNews(entry);
|
||||||
IDbTransaction trans = dbCon.BeginTransaction();
|
IDbTransaction trans = dbCon.BeginTransaction();
|
||||||
dbcmd.Transaction = trans;
|
dbcmd.Transaction = trans;
|
||||||
|
|
||||||
string sql = "UPDATE news SET date = @date, type = @type, added_id = @added_id " + $"WHERE id = {entry.id}";
|
string sql = "UPDATE news SET date = @date, type = @type, added_id = @added_id " + $"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -263,9 +263,9 @@ namespace Cicm.Database
|
|||||||
param2.DbType = DbType.Int32;
|
param2.DbType = DbType.Int32;
|
||||||
param3.DbType = DbType.Int32;
|
param3.DbType = DbType.Int32;
|
||||||
|
|
||||||
param1.Value = entry.date;
|
param1.Value = entry.Date;
|
||||||
param2.Value = entry.type;
|
param2.Value = entry.Type;
|
||||||
param3.Value = entry.added_id;
|
param3.Value = entry.AffectedId;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -282,10 +282,10 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
News entry = new News
|
News entry = new News
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
date = dataRow["date"].ToString(),
|
Date = dataRow["date"].ToString(),
|
||||||
type = int.Parse(dataRow["type"].ToString()),
|
Type = int.Parse(dataRow["type"].ToString()),
|
||||||
added_id = int.Parse(dataRow["added_id"].ToString())
|
AffectedId = int.Parse(dataRow["added_id"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddOwnComputer(OwnComputer entry, out long id)
|
public bool AddOwnComputer(OwnComputer entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding owned computer `{0}`...", entry.db_id);
|
Console.Write("Adding owned computer `{0}`...", entry.ComputerId);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandOwnComputer(entry);
|
IDbCommand dbcmd = GetCommandOwnComputer(entry);
|
||||||
@@ -205,7 +205,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateOwnComputer(OwnComputer entry)
|
public bool UpdateOwnComputer(OwnComputer entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating computer `{0}`...", entry.db_id);
|
Console.WriteLine("Updating computer `{0}`...", entry.ComputerId);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandOwnComputer(entry);
|
IDbCommand dbcmd = GetCommandOwnComputer(entry);
|
||||||
@@ -215,7 +215,7 @@ namespace Cicm.Database
|
|||||||
string sql =
|
string sql =
|
||||||
"UPDATE own_computer SET db_id = @db_id, date = @date, status = @status, trade = @trade, boxed = @boxed, manuals = @manuals, cpu1 = @cpu1" +
|
"UPDATE own_computer SET db_id = @db_id, date = @date, status = @status, trade = @trade, boxed = @boxed, manuals = @manuals, cpu1 = @cpu1" +
|
||||||
"mhz1 = @mhz1, cpu2 = @cpu2, mhz2 = @mhz2, ram = @ram, vram = @vram, rigid = @rigid, disk1 = @disk1, cap1 = @cap1, disk2 = @disk2, cap2 = @cap2 " +
|
"mhz1 = @mhz1, cpu2 = @cpu2, mhz2 = @mhz2, ram = @ram, vram = @vram, rigid = @rigid, disk1 = @disk1, cap1 = @cap1, disk2 = @disk2, cap2 = @cap2 " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -310,23 +310,23 @@ namespace Cicm.Database
|
|||||||
param16.DbType = DbType.Int32;
|
param16.DbType = DbType.Int32;
|
||||||
param17.DbType = DbType.Int32;
|
param17.DbType = DbType.Int32;
|
||||||
|
|
||||||
param1.Value = entry.db_id;
|
param1.Value = entry.ComputerId;
|
||||||
param2.Value = entry.date;
|
param2.Value = entry.Acquired;
|
||||||
param3.Value = entry.status;
|
param3.Value = entry.Status;
|
||||||
param4.Value = entry.trade;
|
param4.Value = entry.Trade;
|
||||||
param5.Value = entry.boxed;
|
param5.Value = entry.Boxed;
|
||||||
param6.Value = entry.manuals;
|
param6.Value = entry.Manuals;
|
||||||
param7.Value = entry.cpu1;
|
param7.Value = entry.Cpu1;
|
||||||
param8.Value = entry.mhz1;
|
param8.Value = entry.Mhz1;
|
||||||
param9.Value = entry.cpu2;
|
param9.Value = entry.Cpu2;
|
||||||
param10.Value = entry.mhz2;
|
param10.Value = entry.Mhz2;
|
||||||
param11.Value = entry.ram;
|
param11.Value = entry.Ram;
|
||||||
param12.Value = entry.vram;
|
param12.Value = entry.Vram;
|
||||||
param13.Value = entry.rigid;
|
param13.Value = entry.Rigid;
|
||||||
param14.Value = entry.disk1;
|
param14.Value = entry.Disk1;
|
||||||
param15.Value = entry.cap1;
|
param15.Value = entry.Cap1;
|
||||||
param16.Value = entry.disk2;
|
param16.Value = entry.Disk2;
|
||||||
param17.Value = entry.cap2;
|
param17.Value = entry.Cap2;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -357,24 +357,24 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
OwnComputer entry = new OwnComputer
|
OwnComputer entry = new OwnComputer
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
db_id = int.Parse(dataRow["db_id"].ToString()),
|
ComputerId = int.Parse(dataRow["db_id"].ToString()),
|
||||||
date = dataRow["date"].ToString(),
|
Acquired = dataRow["date"].ToString(),
|
||||||
status = int.Parse(dataRow["status"].ToString()),
|
Status = int.Parse(dataRow["status"].ToString()),
|
||||||
trade = bool.Parse(dataRow["trade"].ToString()),
|
Trade = bool.Parse(dataRow["trade"].ToString()),
|
||||||
boxed = bool.Parse(dataRow["boxed"].ToString()),
|
Boxed = bool.Parse(dataRow["boxed"].ToString()),
|
||||||
manuals = bool.Parse(dataRow["manuals"].ToString()),
|
Manuals = bool.Parse(dataRow["manuals"].ToString()),
|
||||||
cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
Cpu1 = int.Parse(dataRow["cpu1"].ToString()),
|
||||||
mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
Mhz1 = float.Parse(dataRow["mhz1"].ToString()),
|
||||||
cpu2 = int.Parse(dataRow["cpu1"].ToString()),
|
Cpu2 = int.Parse(dataRow["cpu1"].ToString()),
|
||||||
mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
Mhz2 = float.Parse(dataRow["mhz2"].ToString()),
|
||||||
ram = int.Parse(dataRow["ram"].ToString()),
|
Ram = int.Parse(dataRow["ram"].ToString()),
|
||||||
vram = int.Parse(dataRow["vram"].ToString()),
|
Vram = int.Parse(dataRow["vram"].ToString()),
|
||||||
rigid = dataRow["rigid"].ToString(),
|
Rigid = dataRow["rigid"].ToString(),
|
||||||
disk1 = int.Parse(dataRow["disk1"].ToString()),
|
Disk1 = int.Parse(dataRow["disk1"].ToString()),
|
||||||
cap1 = int.Parse(dataRow["cap1"].ToString()),
|
Cap1 = int.Parse(dataRow["cap1"].ToString()),
|
||||||
disk2 = int.Parse(dataRow["disk2"].ToString()),
|
Disk2 = int.Parse(dataRow["disk2"].ToString()),
|
||||||
cap2 = int.Parse(dataRow["cap2"].ToString())
|
Cap2 = int.Parse(dataRow["cap2"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Cicm.Database
|
|||||||
public bool AddOwnConsole(OwnConsole entry, out long id)
|
public bool AddOwnConsole(OwnConsole entry, out long id)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.Write("Adding owned console `{0}`...", entry.db_id);
|
Console.Write("Adding owned console `{0}`...", entry.ConsoleId);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandOwnConsole(entry);
|
IDbCommand dbcmd = GetCommandOwnConsole(entry);
|
||||||
@@ -204,7 +204,7 @@ namespace Cicm.Database
|
|||||||
public bool UpdateOwnConsole(OwnConsole entry)
|
public bool UpdateOwnConsole(OwnConsole entry)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine("Updating console `{0}`...", entry.db_id);
|
Console.WriteLine("Updating console `{0}`...", entry.ConsoleId);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IDbCommand dbcmd = GetCommandOwnConsole(entry);
|
IDbCommand dbcmd = GetCommandOwnConsole(entry);
|
||||||
@@ -213,7 +213,7 @@ namespace Cicm.Database
|
|||||||
|
|
||||||
string sql =
|
string sql =
|
||||||
"UPDATE own_consoles SET db_id = @db_id, date = @date, status = @status, trade = @trade, boxed = @boxed, manuals = @manuals " +
|
"UPDATE own_consoles SET db_id = @db_id, date = @date, status = @status, trade = @trade, boxed = @boxed, manuals = @manuals " +
|
||||||
$"WHERE id = {entry.id}";
|
$"WHERE id = {entry.Id}";
|
||||||
|
|
||||||
dbcmd.CommandText = sql;
|
dbcmd.CommandText = sql;
|
||||||
|
|
||||||
@@ -275,12 +275,12 @@ namespace Cicm.Database
|
|||||||
param5.DbType = DbType.Boolean;
|
param5.DbType = DbType.Boolean;
|
||||||
param6.DbType = DbType.Boolean;
|
param6.DbType = DbType.Boolean;
|
||||||
|
|
||||||
param1.Value = entry.db_id;
|
param1.Value = entry.ConsoleId;
|
||||||
param2.Value = entry.date;
|
param2.Value = entry.Acquired;
|
||||||
param3.Value = entry.status;
|
param3.Value = entry.Status;
|
||||||
param4.Value = entry.trade;
|
param4.Value = entry.Trade;
|
||||||
param5.Value = entry.boxed;
|
param5.Value = entry.Boxed;
|
||||||
param6.Value = entry.manuals;
|
param6.Value = entry.Manuals;
|
||||||
|
|
||||||
dbcmd.Parameters.Add(param1);
|
dbcmd.Parameters.Add(param1);
|
||||||
dbcmd.Parameters.Add(param2);
|
dbcmd.Parameters.Add(param2);
|
||||||
@@ -300,13 +300,13 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
OwnConsole entry = new OwnConsole
|
OwnConsole entry = new OwnConsole
|
||||||
{
|
{
|
||||||
id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
db_id = int.Parse(dataRow["db_id"].ToString()),
|
ConsoleId = int.Parse(dataRow["db_id"].ToString()),
|
||||||
date = dataRow["date"].ToString(),
|
Acquired = dataRow["date"].ToString(),
|
||||||
status = int.Parse(dataRow["status"].ToString()),
|
Status = int.Parse(dataRow["status"].ToString()),
|
||||||
trade = bool.Parse(dataRow["trade"].ToString()),
|
Trade = bool.Parse(dataRow["trade"].ToString()),
|
||||||
boxed = bool.Parse(dataRow["boxed"].ToString()),
|
Boxed = bool.Parse(dataRow["boxed"].ToString()),
|
||||||
manuals = bool.Parse(dataRow["manuals"].ToString())
|
Manuals = bool.Parse(dataRow["manuals"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ namespace Cicm.Database.Schemas
|
|||||||
public class Admin
|
public class Admin
|
||||||
{
|
{
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Hashed password</summary>
|
/// <summary>Hashed password</summary>
|
||||||
public string password;
|
public string Password;
|
||||||
/// <summary>Username</summary>
|
/// <summary>Username</summary>
|
||||||
public string user;
|
public string Username;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,39 +33,39 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Browser test</summary>
|
/// <summary>Browser test</summary>
|
||||||
public class BrowserTest
|
public class BrowserTest
|
||||||
{
|
{
|
||||||
/// <summary>Supports animated GIF</summary>
|
|
||||||
public bool agif;
|
|
||||||
/// <summary>Browser name</summary>
|
|
||||||
public string browser;
|
|
||||||
/// <summary>Supports colors</summary>
|
|
||||||
public bool colors;
|
|
||||||
/// <summary>Supports Adobe Flash</summary>
|
|
||||||
public bool flash;
|
|
||||||
/// <summary>Supports IFRAMEs</summary>
|
|
||||||
public bool frames;
|
|
||||||
/// <summary>Supports GIF87</summary>
|
|
||||||
public bool gif87;
|
|
||||||
/// <summary>Supports GIF with transparency (GIF89)</summary>
|
|
||||||
public bool gif89;
|
|
||||||
/// <summary>ID</summary>
|
|
||||||
public ushort id;
|
|
||||||
/// <summary>User agent string</summary>
|
|
||||||
public string idstring;
|
|
||||||
/// <summary>Supports JPEG</summary>
|
|
||||||
public bool jpeg;
|
|
||||||
/// <summary>Supports JavaScript</summary>
|
|
||||||
public bool js;
|
|
||||||
/// <summary>Browser operating system</summary>
|
|
||||||
public string os;
|
|
||||||
/// <summary>Browser architecture</summary>
|
|
||||||
public string platform;
|
|
||||||
/// <summary>Supports PNG</summary>
|
|
||||||
public bool png;
|
|
||||||
/// <summary>Supports PNG with alpha channel</summary>
|
/// <summary>Supports PNG with alpha channel</summary>
|
||||||
public bool pngt;
|
public bool AlphaPng;
|
||||||
|
/// <summary>Supports animated GIF</summary>
|
||||||
|
public bool AnimatedGif;
|
||||||
|
/// <summary>Browser architecture</summary>
|
||||||
|
public string Architecture;
|
||||||
|
/// <summary>Supports colors</summary>
|
||||||
|
public bool Color;
|
||||||
|
/// <summary>Supports Adobe Flash</summary>
|
||||||
|
public bool Flash;
|
||||||
|
/// <summary>Supports IFRAMEs</summary>
|
||||||
|
public bool Frames;
|
||||||
|
/// <summary>Supports GIF87</summary>
|
||||||
|
public bool Gif87;
|
||||||
|
/// <summary>Supports GIF with transparency (GIF89)</summary>
|
||||||
|
public bool Gif89;
|
||||||
|
/// <summary>ID</summary>
|
||||||
|
public ushort Id;
|
||||||
|
/// <summary>Supports JPEG</summary>
|
||||||
|
public bool Jpeg;
|
||||||
|
/// <summary>Supports JavaScript</summary>
|
||||||
|
public bool Js;
|
||||||
|
/// <summary>Browser name</summary>
|
||||||
|
public string Name;
|
||||||
|
/// <summary>Browser operating system</summary>
|
||||||
|
public string OperatingSystem;
|
||||||
|
/// <summary>Supports PNG</summary>
|
||||||
|
public bool Png;
|
||||||
/// <summary>Supports HTML tables</summary>
|
/// <summary>Supports HTML tables</summary>
|
||||||
public bool table;
|
public bool Tables;
|
||||||
|
/// <summary>User agent string</summary>
|
||||||
|
public string UserAgent;
|
||||||
/// <summary>Browser version</summary>
|
/// <summary>Browser version</summary>
|
||||||
public string version;
|
public string Version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,9 +33,9 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Company</summary>
|
/// <summary>Company</summary>
|
||||||
public class Company
|
public class Company
|
||||||
{
|
{
|
||||||
/// <summary>Name</summary>
|
|
||||||
public string Compania;
|
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
|
/// <summary>Name</summary>
|
||||||
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,58 +34,58 @@ namespace Cicm.Database.Schemas
|
|||||||
public class Computer
|
public class Computer
|
||||||
{
|
{
|
||||||
/// <summary>Bits of GPRs of primary CPU</summary>
|
/// <summary>Bits of GPRs of primary CPU</summary>
|
||||||
public int bits;
|
public int Bits;
|
||||||
/// <summary>Capacity of first removable disk format</summary>
|
/// <summary>Capacity of first removable disk format</summary>
|
||||||
public string cap1;
|
public string Cap1;
|
||||||
/// <summary>Capacity of second removable disk format</summary>
|
/// <summary>Capacity of second removable disk format</summary>
|
||||||
public string cap2;
|
public string Cap2;
|
||||||
/// <summary>Maximum colors on screen</summary>
|
/// <summary>Maximum colors on screen</summary>
|
||||||
public int colors;
|
public int Colors;
|
||||||
/// <summary>Free-form comments</summary>
|
/// <summary>Free-form comments</summary>
|
||||||
public string comment;
|
public string Comment;
|
||||||
/// <summary>Manufacturer's company ID</summary>
|
/// <summary>Manufacturer's company ID</summary>
|
||||||
public int company;
|
public int Company;
|
||||||
/// <summary>Primary CPU</summary>
|
/// <summary>Primary CPU</summary>
|
||||||
public int cpu1;
|
public int Cpu1;
|
||||||
/// <summary>Secondary CPU</summary>
|
/// <summary>Secondary CPU</summary>
|
||||||
public int cpu2;
|
public int Cpu2;
|
||||||
/// <summary>ID of first removable disk format</summary>
|
/// <summary>ID of first removable disk format</summary>
|
||||||
public int disk1;
|
public int Disk1;
|
||||||
/// <summary>ID of second removable disk format</summary>
|
/// <summary>ID of second removable disk format</summary>
|
||||||
public int disk2;
|
public int Disk2;
|
||||||
/// <summary>ID of GPU</summary>
|
/// <summary>ID of GPU</summary>
|
||||||
public int gpu;
|
public int Gpu;
|
||||||
/// <summary>ID of first hard disk format</summary>
|
/// <summary>ID of first hard disk format</summary>
|
||||||
public int hdd1;
|
public int Hdd1;
|
||||||
/// <summary>ID of second hard disk format</summary>
|
/// <summary>ID of second hard disk format</summary>
|
||||||
public int hdd2;
|
public int Hdd2;
|
||||||
/// <summary>ID of third hard disk format</summary>
|
/// <summary>ID of third hard disk format</summary>
|
||||||
public int hdd3;
|
public int Hdd3;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Frequency in MHz of primary CPU</summary>
|
/// <summary>Frequency in MHz of primary CPU</summary>
|
||||||
public float mhz1;
|
public float Mhz1;
|
||||||
/// <summary>Frequency in MHz of secondary CPU</summary>
|
/// <summary>Frequency in MHz of secondary CPU</summary>
|
||||||
public float mhz2;
|
public float Mhz2;
|
||||||
/// <summary>Model name</summary>
|
/// <summary>Model name</summary>
|
||||||
public string model;
|
public string Model;
|
||||||
/// <summary>ID of MPU</summary>
|
/// <summary>ID of MPU</summary>
|
||||||
public int mpu;
|
public int Mpu;
|
||||||
/// <summary>Audio channels supported by the MPU</summary>
|
/// <summary>Audio channels supported by the MPU</summary>
|
||||||
public int music_channels;
|
public int MusicChannels;
|
||||||
/// <summary>Size in kibibytes of program RAM</summary>
|
/// <summary>Size in kibibytes of program RAM</summary>
|
||||||
public int ram;
|
public int Ram;
|
||||||
/// <summary>Resolution in WxH pixels</summary>
|
/// <summary>Resolution in WxH pixels</summary>
|
||||||
public string res;
|
public string Resolution;
|
||||||
/// <summary>Size in kibibytes of firmware</summary>
|
/// <summary>Size in kibibytes of firmware</summary>
|
||||||
public int rom;
|
public int Rom;
|
||||||
/// <summary>Audio channels supported by the DSP</summary>
|
/// <summary>Audio channels supported by the DSP</summary>
|
||||||
public int sound_channels;
|
public int SoundChannels;
|
||||||
/// <summary>ID of DSP</summary>
|
/// <summary>ID of DSP</summary>
|
||||||
public int spu;
|
public int Spu;
|
||||||
/// <summary>Size in kibibytes for video RAM</summary>
|
/// <summary>Size in kibibytes for video RAM</summary>
|
||||||
public int vram;
|
public int Vram;
|
||||||
/// <summary>Introduction date, 0 if unknown</summary>
|
/// <summary>Introduction date, 0 if unknown</summary>
|
||||||
public int year;
|
public int Year;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,50 +33,50 @@ namespace Cicm.Database.Schemas
|
|||||||
public class Console
|
public class Console
|
||||||
{
|
{
|
||||||
/// <summary>Bits of GPRs of primary CPU</summary>
|
/// <summary>Bits of GPRs of primary CPU</summary>
|
||||||
public int bits;
|
public int Bits;
|
||||||
/// <summary>Capacity in kibibytes of storage format</summary>
|
/// <summary>Capacity in kibibytes of storage format</summary>
|
||||||
public int cap;
|
public int Cap;
|
||||||
/// <summary>Maximum colors on screen</summary>
|
/// <summary>Maximum colors on screen</summary>
|
||||||
public int colors;
|
public int Colors;
|
||||||
/// <summary>Free-form comments</summary>
|
/// <summary>Free-form comments</summary>
|
||||||
public string comments;
|
public string Comments;
|
||||||
/// <summary>Manufacturer's company ID</summary>
|
/// <summary>Manufacturer's company ID</summary>
|
||||||
public int company;
|
public int Company;
|
||||||
/// <summary>Primary CPU</summary>
|
/// <summary>Primary CPU</summary>
|
||||||
public int cpu1;
|
public int Cpu1;
|
||||||
/// <summary>Secondary CPU</summary>
|
/// <summary>Secondary CPU</summary>
|
||||||
public int cpu2;
|
public int Cpu2;
|
||||||
/// <summary>ID of storage format</summary>
|
/// <summary>ID of storage format</summary>
|
||||||
public int format;
|
public int Format;
|
||||||
/// <summary>ID of GPU</summary>
|
/// <summary>ID of GPU</summary>
|
||||||
public int gpu;
|
public int Gpu;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Audio channels supported by the MPU</summary>
|
|
||||||
public int mchannels;
|
|
||||||
/// <summary>Frequency in MHz of primary CPU</summary>
|
/// <summary>Frequency in MHz of primary CPU</summary>
|
||||||
public float mhz1;
|
public float Mhz1;
|
||||||
/// <summary>Frequency in MHz of secondary CPU</summary>
|
/// <summary>Frequency in MHz of secondary CPU</summary>
|
||||||
public float mhz2;
|
public float Mhz2;
|
||||||
/// <summary>ID of MPU</summary>
|
/// <summary>ID of MPU</summary>
|
||||||
public int mpu;
|
public int Mpu;
|
||||||
|
/// <summary>Audio channels supported by the MPU</summary>
|
||||||
|
public int MusicChannels;
|
||||||
/// <summary>Model name</summary>
|
/// <summary>Model name</summary>
|
||||||
public string name;
|
public string Name;
|
||||||
/// <summary>Colors on palette</summary>
|
/// <summary>Colors on palette</summary>
|
||||||
public int palette;
|
public int Palette;
|
||||||
/// <summary>Size in kibibytes of program RAM</summary>
|
/// <summary>Size in kibibytes of program RAM</summary>
|
||||||
public int ram;
|
public int Ram;
|
||||||
/// <summary>Resolution in WxH pixels</summary>
|
/// <summary>Resolution in WxH pixels</summary>
|
||||||
public string res;
|
public string Resolution;
|
||||||
/// <summary>Size in kibibytes of firmware</summary>
|
/// <summary>Size in kibibytes of firmware</summary>
|
||||||
public int rom;
|
public int Rom;
|
||||||
/// <summary>Audio channels supported by the DSP</summary>
|
/// <summary>Audio channels supported by the DSP</summary>
|
||||||
public int schannels;
|
public int SoundChannels;
|
||||||
/// <summary>ID of DSP</summary>
|
/// <summary>ID of DSP</summary>
|
||||||
public int spu;
|
public int Spu;
|
||||||
/// <summary>Size in kibibytes for video RAM</summary>
|
/// <summary>Size in kibibytes for video RAM</summary>
|
||||||
public int vram;
|
public int Vram;
|
||||||
/// <summary>Introduction date, 0 if unknown</summary>
|
/// <summary>Introduction date, 0 if unknown</summary>
|
||||||
public int year;
|
public int Year;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,9 +35,9 @@ namespace Cicm.Database.Schemas
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ConsoleCompany
|
public class ConsoleCompany
|
||||||
{
|
{
|
||||||
/// <summary>Name</summary>
|
|
||||||
public string company;
|
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
|
/// <summary>Name</summary>
|
||||||
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,9 +33,9 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Central Processing Unit</summary>
|
/// <summary>Central Processing Unit</summary>
|
||||||
public class Cpu
|
public class Cpu
|
||||||
{
|
{
|
||||||
/// <summary>Name</summary>
|
|
||||||
public string cpu;
|
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
|
/// <summary>Name</summary>
|
||||||
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,8 +34,8 @@ namespace Cicm.Database.Schemas
|
|||||||
public class DiskFormat
|
public class DiskFormat
|
||||||
{
|
{
|
||||||
/// <summary>Description</summary>
|
/// <summary>Description</summary>
|
||||||
public string Format;
|
public string Description;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,9 +33,9 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Digital Sound Processor</summary>
|
/// <summary>Digital Sound Processor</summary>
|
||||||
public class Dsp
|
public class Dsp
|
||||||
{
|
{
|
||||||
/// <summary>Name</summary>
|
|
||||||
public string DSP;
|
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
|
/// <summary>Name</summary>
|
||||||
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,15 +33,15 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Accesses forbidden with HTTP STATUS 403</summary>
|
/// <summary>Accesses forbidden with HTTP STATUS 403</summary>
|
||||||
public class Forbidden
|
public class Forbidden
|
||||||
{
|
{
|
||||||
/// <summary>User agent</summary>
|
|
||||||
public string browser;
|
|
||||||
/// <summary>Date of access</summary>
|
/// <summary>Date of access</summary>
|
||||||
public string date;
|
public string Date;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Access IP</summary>
|
/// <summary>Access IP</summary>
|
||||||
public string ip;
|
public string Ip;
|
||||||
/// <summary>Referer</summary>
|
/// <summary>Referer</summary>
|
||||||
public string referer;
|
public string Referer;
|
||||||
|
/// <summary>User agent</summary>
|
||||||
|
public string UserAgent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,9 +33,9 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Graphics Processing Unit</summary>
|
/// <summary>Graphics Processing Unit</summary>
|
||||||
public class Gpu
|
public class Gpu
|
||||||
{
|
{
|
||||||
/// <summary>Name</summary>
|
|
||||||
public string gpu;
|
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
|
/// <summary>Name</summary>
|
||||||
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,15 +35,15 @@ namespace Cicm.Database.Schemas
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Log
|
public class Log
|
||||||
{
|
{
|
||||||
/// <summary>User agent string</summary>
|
|
||||||
public string browser;
|
|
||||||
/// <summary>Access date</summary>
|
/// <summary>Access date</summary>
|
||||||
public string date;
|
public string Date;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Access IP</summary>
|
/// <summary>Access IP</summary>
|
||||||
public string ip;
|
public string Ip;
|
||||||
/// <summary>Referer</summary>
|
/// <summary>Referer</summary>
|
||||||
public string referer;
|
public string Referer;
|
||||||
|
/// <summary>User agent string</summary>
|
||||||
|
public string UserAgent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,10 +34,10 @@ namespace Cicm.Database.Schemas
|
|||||||
public class MoneyDonation
|
public class MoneyDonation
|
||||||
{
|
{
|
||||||
/// <summary>Donator</summary>
|
/// <summary>Donator</summary>
|
||||||
public string donator;
|
public string Donator;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Donation quantity in euros</summary>
|
/// <summary>Donation quantity in euros</summary>
|
||||||
public float quantity;
|
public float Quantity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,8 +34,8 @@ namespace Cicm.Database.Schemas
|
|||||||
public class Mpu
|
public class Mpu
|
||||||
{
|
{
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Name</summary>
|
/// <summary>Name</summary>
|
||||||
public string mpu;
|
public string Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,12 +34,12 @@ namespace Cicm.Database.Schemas
|
|||||||
public class News
|
public class News
|
||||||
{
|
{
|
||||||
/// <summary>Affected ID</summary>
|
/// <summary>Affected ID</summary>
|
||||||
public int added_id;
|
public int AffectedId;
|
||||||
/// <summary>Date</summary>
|
/// <summary>Date</summary>
|
||||||
public string date;
|
public string Date;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>News type</summary>
|
/// <summary>News type</summary>
|
||||||
public int type;
|
public int Type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,41 +33,41 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Owned computer</summary>
|
/// <summary>Owned computer</summary>
|
||||||
public class OwnComputer
|
public class OwnComputer
|
||||||
{
|
{
|
||||||
|
/// <summary>Acquired date</summary>
|
||||||
|
public string Acquired;
|
||||||
/// <summary>Box present in collection</summary>
|
/// <summary>Box present in collection</summary>
|
||||||
public bool boxed;
|
public bool Boxed;
|
||||||
/// <summary>Capacity of first removable disk format</summary>
|
/// <summary>Capacity of first removable disk format</summary>
|
||||||
public int cap1;
|
public int Cap1;
|
||||||
/// <summary>Capacity of second removable disk format</summary>
|
/// <summary>Capacity of second removable disk format</summary>
|
||||||
public int cap2;
|
public int Cap2;
|
||||||
/// <summary>Primary CPU</summary>
|
|
||||||
public int cpu1;
|
|
||||||
/// <summary>Secondary CPU</summary>
|
|
||||||
public int cpu2;
|
|
||||||
/// <summary>Adquired date</summary>
|
|
||||||
public string date;
|
|
||||||
/// <summary>Computer's ID</summary>
|
/// <summary>Computer's ID</summary>
|
||||||
public int db_id;
|
public int ComputerId;
|
||||||
|
/// <summary>Primary CPU</summary>
|
||||||
|
public int Cpu1;
|
||||||
|
/// <summary>Secondary CPU</summary>
|
||||||
|
public int Cpu2;
|
||||||
/// <summary>ID of first removable disk format</summary>
|
/// <summary>ID of first removable disk format</summary>
|
||||||
public int disk1;
|
public int Disk1;
|
||||||
/// <summary>ID of second removable disk format</summary>
|
/// <summary>ID of second removable disk format</summary>
|
||||||
public int disk2;
|
public int Disk2;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Original manuals present in collection</summary>
|
/// <summary>Original manuals present in collection</summary>
|
||||||
public bool manuals;
|
public bool Manuals;
|
||||||
/// <summary>Frequency in MHz of primary CPU</summary>
|
/// <summary>Frequency in MHz of primary CPU</summary>
|
||||||
public float mhz1;
|
public float Mhz1;
|
||||||
/// <summary>Frequency in MHz of secondary CPU</summary>
|
/// <summary>Frequency in MHz of secondary CPU</summary>
|
||||||
public float mhz2;
|
public float Mhz2;
|
||||||
/// <summary>Size in kibibytes of program RAM</summary>
|
/// <summary>Size in kibibytes of program RAM</summary>
|
||||||
public int ram;
|
public int Ram;
|
||||||
/// <summary>Rigid disk</summary>
|
/// <summary>Rigid disk</summary>
|
||||||
public string rigid;
|
public string Rigid;
|
||||||
/// <summary>Status</summary>
|
/// <summary>Status</summary>
|
||||||
public int status;
|
public int Status;
|
||||||
/// <summary>Available for trade</summary>
|
/// <summary>Available for trade</summary>
|
||||||
public bool trade;
|
public bool Trade;
|
||||||
/// <summary>Size in kibibytes for video RAM</summary>
|
/// <summary>Size in kibibytes for video RAM</summary>
|
||||||
public int vram;
|
public int Vram;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,19 +33,19 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>Owned videogame console</summary>
|
/// <summary>Owned videogame console</summary>
|
||||||
public class OwnConsole
|
public class OwnConsole
|
||||||
{
|
{
|
||||||
|
/// <summary>Acquired date</summary>
|
||||||
|
public string Acquired;
|
||||||
/// <summary>Box present in collection</summary>
|
/// <summary>Box present in collection</summary>
|
||||||
public bool boxed;
|
public bool Boxed;
|
||||||
/// <summary>Adquired date</summary>
|
|
||||||
public string date;
|
|
||||||
/// <summary>Videogame console's ID</summary>
|
/// <summary>Videogame console's ID</summary>
|
||||||
public int db_id;
|
public int ConsoleId;
|
||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int id;
|
public int Id;
|
||||||
/// <summary>Original manuals present in collection</summary>
|
/// <summary>Original manuals present in collection</summary>
|
||||||
public bool manuals;
|
public bool Manuals;
|
||||||
/// <summary>Status</summary>
|
/// <summary>Status</summary>
|
||||||
public int status;
|
public int Status;
|
||||||
/// <summary>Available for trade</summary>
|
/// <summary>Available for trade</summary>
|
||||||
public bool trade;
|
public bool Trade;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user