source code checkin

This commit is contained in:
Brett Hewitson 2021-01-07 16:23:23 +10:00
parent 5f8fb2c825
commit 7e57b72e35
675 changed files with 168433 additions and 0 deletions

View file

@ -0,0 +1,66 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<SccProjectName>%24/Development/ServerManagers/Main/ConanData</SccProjectName>
<SccProvider>{4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}</SccProvider>
<SccAuxPath>https://dev.azure.com/bretthewitson</SccAuxPath>
<SccLocalPath>.</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net462</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.112.1" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<Compile Update="Datasets\AccountDataSet.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AccountDataSet.xsd</DependentUpon>
</Compile>
<Compile Update="Datasets\CharactersDataSet.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>CharactersDataSet.xsd</DependentUpon>
</Compile>
<Compile Update="Datasets\CharacterStatsDataSet.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>CharacterStatsDataSet.xsd</DependentUpon>
</Compile>
<Compile Update="Datasets\GuildsDataSet.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>GuildsDataSet.xsd</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Datasets\AccountDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>AccountDataSet.Designer.cs</LastGenOutput>
</None>
<None Update="Datasets\CharactersDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>CharactersDataSet.Designer.cs</LastGenOutput>
</None>
<None Update="Datasets\CharacterStatsDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>CharacterStatsDataSet.Designer.cs</LastGenOutput>
</None>
<None Update="Datasets\GuildsDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>GuildsDataSet.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
</Project>

View file

@ -0,0 +1,34 @@
using ConanData.DataAccess.Base;
using ConanData.Database;
using ConanData.Datasets;
using System;
using System.Data;
using System.Text;
namespace ConanData.DataAccess
{
/// <summary>
/// Inherited data access class to perform customized Fetches, Deletes, Inserts
/// and Updates on table account
/// </summary>
internal class AccountDataAccess : AccountDataAccessBase
{
public AccountDataAccess(Connection connection)
: base(connection)
{
}
public AccountDataSet FetchDataSetOnlineOnly()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
sql.AppendFormat("WHERE [{0}].[{1}] <> 0 ", TABLE__NAME, COLUMN__ONLINE);
AccountDataSet dataSet = new AccountDataSet();
connection.FillDataSet(sql.ToString(), null, CommandType.Text, 300, dataSet, new String[] { TABLE__NAME });
return dataSet;
}
}
}

View file

@ -0,0 +1,104 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a code generation tool.
// Date generated: 14/05/2018 17:05:24
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using ConanData.Database;
using ConanData.Datasets;
using System;
using System.Data;
using System.Data.Common;
using System.Data.OleDb;
using System.Text;
namespace ConanData.DataAccess.Base
{
/// <summary>
/// Data access class to perform Fetches, Deletes, Inserts and Updates
/// on table account
/// </summary>
internal class AccountDataAccessBase
{
#region Constants
internal const String SCHEMA__NAME = "";
internal const String TABLE__NAME = "account";
internal const String COLUMN__ID = "id";
internal const String COLUMN__USER = "user";
internal const String COLUMN__ONLINE = "online";
#endregion
private Connection _connection = null;
public AccountDataAccessBase(Connection connection)
{
_connection = connection;
}
#region Properties
public Connection Connection => _connection;
#endregion
#region Fetch Typed DataSets
/// <summary>
/// Fetches all the records into a typed dataset from the
/// table account
/// </summary>
/// <returns>A populated typed dataset</returns>
public AccountDataSet FetchDataSetAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
AccountDataSet dataSet = new AccountDataSet();
connection.FillDataSet(sql.ToString(), null, CommandType.Text, 300, dataSet, new String[] { TABLE__NAME });
return dataSet;
}
#endregion
#region Fetch DataTables
/// <summary>
/// Fetches all the records into an untyped datatable from the
/// table account
/// </summary>
/// <returns>A populated untyped datatable</returns>
public DataTable FetchDataTableAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
return connection.ExecuteDataTable(sql.ToString(), null, CommandType.Text, 300, TABLE__NAME);
}
#endregion
#region Support Methods
protected String GetSelect()
{
StringBuilder sql = new StringBuilder();
sql.AppendFormat("SELECT [{0}].[{1}] AS [AccountId],", TABLE__NAME, COLUMN__ID);
sql.AppendFormat("[{0}].[{1}] AS [User],", TABLE__NAME, COLUMN__USER);
sql.AppendFormat("[{0}].[{1}] AS [Online] ", TABLE__NAME, COLUMN__ONLINE);
sql.AppendFormat("FROM {0}[{1}] ", SCHEMA__NAME, TABLE__NAME);
return sql.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,106 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a code generation tool.
// Date generated: 14/05/2018 17:05:24
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using ConanData.Database;
using ConanData.Datasets;
using System;
using System.Data;
using System.Data.Common;
using System.Data.OleDb;
using System.Text;
namespace ConanData.DataAccess.Base
{
/// <summary>
/// Data access class to perform Fetches, Deletes, Inserts and Updates
/// on table character_stats
/// </summary>
internal class CharacterStatsDataAccessBase
{
#region Constants
internal const String SCHEMA__NAME = "";
internal const String TABLE__NAME = "character_stats";
internal const String COLUMN__CHARID = "char_id";
internal const String COLUMN__STATTYPE = "stat_type";
internal const String COLUMN__STATID = "stat_id";
internal const String COLUMN__STATVALUE = "stat_value";
#endregion
private Connection _connection = null;
public CharacterStatsDataAccessBase(Connection connection)
{
_connection = connection;
}
#region Properties
public Connection Connection => _connection;
#endregion
#region Fetch Typed DataSets
/// <summary>
/// Fetches all the records into a typed dataset from the
/// table character_stats
/// </summary>
/// <returns>A populated typed dataset</returns>
public CharacterStatsDataSet FetchDataSetAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
CharacterStatsDataSet dataSet = new CharacterStatsDataSet();
connection.FillDataSet(sql.ToString(), null, CommandType.Text, 300, dataSet, new String[] { TABLE__NAME });
return dataSet;
}
#endregion
#region Fetch DataTables
/// <summary>
/// Fetches all the records into an untyped datatable from the
/// table character_stats
/// </summary>
/// <returns>A populated untyped datatable</returns>
public DataTable FetchDataTableAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
return connection.ExecuteDataTable(sql.ToString(), null, CommandType.Text, 300, TABLE__NAME);
}
#endregion
#region Support Methods
protected String GetSelect()
{
StringBuilder sql = new StringBuilder();
sql.AppendFormat("SELECT [{0}].[{1}] AS [CharacterId],", TABLE__NAME, COLUMN__CHARID);
sql.AppendFormat("[{0}].[{1}] AS [StatType],", TABLE__NAME, COLUMN__STATTYPE);
sql.AppendFormat("[{0}].[{1}] AS [StatId],", TABLE__NAME, COLUMN__STATID);
sql.AppendFormat("[{0}].[{1}] AS [StatValue] ", TABLE__NAME, COLUMN__STATVALUE);
sql.AppendFormat("FROM {0}[{1}] ", SCHEMA__NAME, TABLE__NAME);
return sql.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,114 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a code generation tool.
// Date generated: 14/05/2018 17:05:24
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using ConanData.Database;
using ConanData.Datasets;
using System;
using System.Data;
using System.Data.Common;
using System.Data.OleDb;
using System.Text;
namespace ConanData.DataAccess.Base
{
/// <summary>
/// Data access class to perform Fetches, Deletes, Inserts and Updates
/// on table characters
/// </summary>
internal class CharactersDataAccessBase
{
#region Constants
internal const String SCHEMA__NAME = "";
internal const String TABLE__NAME = "characters";
internal const String COLUMN__PLAYERID = "playerId";
internal const String COLUMN__ID = "id";
internal const String COLUMN__CHARNAME = "char_name";
internal const String COLUMN__LEVEL = "level";
internal const String COLUMN__RANK = "rank";
internal const String COLUMN__GUILD = "guild";
internal const String COLUMN__ISALIVE = "isAlive";
internal const String COLUMN__LASTTIMEONLINE = "lastTimeOnline";
#endregion
private Connection _connection = null;
public CharactersDataAccessBase(Connection connection)
{
_connection = connection;
}
#region Properties
public Connection Connection => _connection;
#endregion
#region Fetch Typed DataSets
/// <summary>
/// Fetches all the records into a typed dataset from the
/// table characters
/// </summary>
/// <returns>A populated typed dataset</returns>
public CharactersDataSet FetchDataSetAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
CharactersDataSet dataSet = new CharactersDataSet();
connection.FillDataSet(sql.ToString(), null, CommandType.Text, 300, dataSet, new String[] { TABLE__NAME });
return dataSet;
}
#endregion
#region Fetch DataTables
/// <summary>
/// Fetches all the records into an untyped datatable from the
/// table characters
/// </summary>
/// <returns>A populated untyped datatable</returns>
public DataTable FetchDataTableAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
return connection.ExecuteDataTable(sql.ToString(), null, CommandType.Text, 300, TABLE__NAME);
}
#endregion
#region Support Methods
protected String GetSelect()
{
StringBuilder sql = new StringBuilder();
sql.AppendFormat("SELECT CAST([{0}].[{1}] AS BIGINT) AS [AccountId],", TABLE__NAME, COLUMN__PLAYERID);
sql.AppendFormat("[{0}].[{1}] AS [CharacterId],", TABLE__NAME, COLUMN__ID);
sql.AppendFormat("[{0}].[{1}] AS [CharacterName],", TABLE__NAME, COLUMN__CHARNAME);
sql.AppendFormat("[{0}].[{1}] AS [Level],", TABLE__NAME, COLUMN__LEVEL);
sql.AppendFormat("[{0}].[{1}] AS [Rank],", TABLE__NAME, COLUMN__RANK);
sql.AppendFormat("[{0}].[{1}] AS [GuildId],", TABLE__NAME, COLUMN__GUILD);
sql.AppendFormat("[{0}].[{1}] AS [IsAlive],", TABLE__NAME, COLUMN__ISALIVE);
sql.AppendFormat("[{0}].[{1}] AS [LastTimeOnline] ", TABLE__NAME, COLUMN__LASTTIMEONLINE);
sql.AppendFormat("FROM {0}[{1}] ", SCHEMA__NAME, TABLE__NAME);
return sql.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,110 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a code generation tool.
// Date generated: 14/05/2018 17:05:24
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using ConanData.Database;
using ConanData.Datasets;
using System;
using System.Data;
using System.Data.Common;
using System.Data.OleDb;
using System.Text;
namespace ConanData.DataAccess.Base
{
/// <summary>
/// Data access class to perform Fetches, Deletes, Inserts and Updates
/// on table guilds
/// </summary>
internal class GuildsDataAccessBase
{
#region Constants
internal const String SCHEMA__NAME = "";
internal const String TABLE__NAME = "guilds";
internal const String COLUMN__GUILDID = "guildId";
internal const String COLUMN__NAME = "name";
internal const String COLUMN__MESSAGEOFTHEDAY = "messageOfTheDay";
internal const String COLUMN__OWNER = "owner";
internal const String COLUMN__NAMELASTCHANGEDBY = "nameLastChangedBy";
internal const String COLUMN__MOTDLASTCHANGEDBY = "motdLastChangedBy";
#endregion
private Connection _connection = null;
public GuildsDataAccessBase(Connection connection)
{
_connection = connection;
}
#region Properties
public Connection Connection => _connection;
#endregion
#region Fetch Typed DataSets
/// <summary>
/// Fetches all the records into a typed dataset from the
/// table guilds
/// </summary>
/// <returns>A populated typed dataset</returns>
public GuildsDataSet FetchDataSetAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
GuildsDataSet dataSet = new GuildsDataSet();
connection.FillDataSet(sql.ToString(), null, CommandType.Text, 300, dataSet, new String[] { TABLE__NAME });
return dataSet;
}
#endregion
#region Fetch DataTables
/// <summary>
/// Fetches all the records into an untyped datatable from the
/// table guilds
/// </summary>
/// <returns>A populated untyped datatable</returns>
public DataTable FetchDataTableAll()
{
Connection connection = Connection;
StringBuilder sql = new StringBuilder();
sql.Append(GetSelect());
return connection.ExecuteDataTable(sql.ToString(), null, CommandType.Text, 300, TABLE__NAME);
}
#endregion
#region Support Methods
protected String GetSelect()
{
StringBuilder sql = new StringBuilder();
sql.AppendFormat("SELECT [{0}].[{1}] AS [GuildId],", TABLE__NAME, COLUMN__GUILDID);
sql.AppendFormat("[{0}].[{1}] AS [Name],", TABLE__NAME, COLUMN__NAME);
sql.AppendFormat("[{0}].[{1}] AS [MessageOfTheDay],", TABLE__NAME, COLUMN__MESSAGEOFTHEDAY);
sql.AppendFormat("[{0}].[{1}] AS [OwnerId],", TABLE__NAME, COLUMN__OWNER);
sql.AppendFormat("[{0}].[{1}] AS [NameLastChangedBy],", TABLE__NAME, COLUMN__NAMELASTCHANGEDBY);
sql.AppendFormat("[{0}].[{1}] AS [MotdLastChangedBy] ", TABLE__NAME, COLUMN__MOTDLASTCHANGEDBY);
sql.AppendFormat("FROM {0}[{1}] ", SCHEMA__NAME, TABLE__NAME);
return sql.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,17 @@
using ConanData.DataAccess.Base;
using ConanData.Database;
namespace ConanData.DataAccess
{
/// <summary>
/// Inherited data access class to perform customized Fetches, Deletes, Inserts
/// and Updates on table character_stats
/// </summary>
internal class CharacterStatsDataAccess : CharacterStatsDataAccessBase
{
public CharacterStatsDataAccess(Connection connection)
: base(connection)
{
}
}
}

View file

@ -0,0 +1,17 @@
using ConanData.DataAccess.Base;
using ConanData.Database;
namespace ConanData.DataAccess
{
/// <summary>
/// Inherited data access class to perform customized Fetches, Deletes, Inserts
/// and Updates on table characters
/// </summary>
internal class CharactersDataAccess : CharactersDataAccessBase
{
public CharactersDataAccess(Connection connection)
: base(connection)
{
}
}
}

View file

@ -0,0 +1,17 @@
using ConanData.DataAccess.Base;
using ConanData.Database;
namespace ConanData.DataAccess
{
/// <summary>
/// Inherited data access class to perform customized Fetches, Deletes, Inserts
/// and Updates on table guilds
/// </summary>
internal class GuildsDataAccess : GuildsDataAccessBase
{
public GuildsDataAccess(Connection connection)
: base(connection)
{
}
}
}

View file

@ -0,0 +1,84 @@
using ConanData.DataAccess;
using ConanData.Database;
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace ConanData
{
/// <summary>
/// The container for the Game Server data.
/// </summary>
public partial class DataContainer
{
/// <summary>
/// Instantiates the DataContainer and parses all the tables
/// </summary>
/// <returns>The async task context containing the resulting container.</returns>
public static async Task<DataContainer> CreateAsync(string dataFile)
{
if (string.IsNullOrWhiteSpace(dataFile) || !File.Exists(dataFile))
return new DataContainer();
var connectionString = $"Data Source={dataFile};Version=3;Read Only=True;";
var connection = Connection.CreateConnection(connectionString, true);
var accountDataAccess = new AccountDataAccess(connection);
var accountData = accountDataAccess.FetchDataSetAll();
var charactersDataAccess = new CharactersDataAccess(connection);
var charactersData = charactersDataAccess.FetchDataSetAll();
var guildsDataAccess = new GuildsDataAccess(connection);
var guildsData = guildsDataAccess.FetchDataSetAll();
connection.DeregisterConnection();
var container = new DataContainer();
foreach (var character in charactersData.Characters)
{
var account = accountData.Account.FirstOrDefault(a => a.AccountId == character.AccountId);
container.Players.Add(await Parser.ParsePlayerAsync(account, character));
}
foreach (var guild in guildsData.Guilds)
{
container.Guilds.Add(await Parser.ParseGuildAsync(guild));
}
container.LinkPlayerGuild();
return container;
}
/// <summary>
/// Instantiates the DataContainer and parses the characters table
/// </summary>
/// <returns>The async task context containing the resulting container.</returns>
public static async Task<int> GetOnlinePlayerCountAsync(string dataFile)
{
if (string.IsNullOrWhiteSpace(dataFile) || !File.Exists(dataFile))
return 0;
var connectionString = $"Data Source={dataFile};Version=3;Read Only=True;";
var connection = Connection.CreateConnection(connectionString, true);
var result = 0;
await Task.Run(() =>
{
var accountDataAccess = new AccountDataAccess(connection);
var accountData = accountDataAccess.FetchDataSetOnlineOnly();
result = accountData?.Account.Count ?? 0;
});
connection.DeregisterConnection();
return result;
}
}
}

View file

@ -0,0 +1,51 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The container for the Game Server data.
/// </summary>
namespace ConanData
{
public partial class DataContainer
{
/// <summary>
/// A list of all players registered on the server.
/// </summary>
public List<PlayerData> Players { get; set; }
/// <summary>
/// A list of all guilds registered on the server.
/// </summary>
public List<GuildData> Guilds { get; set; }
/// <summary>
/// Constructs the DataContainer.
/// </summary>
public DataContainer()
{
Players = new List<PlayerData>();
Guilds = new List<GuildData>();
}
/// <summary>
/// Links the players to their guilds and the guilds to the players.
/// </summary>
private void LinkPlayerGuild()
{
for (var i = 0; i < Players.Count; i++)
{
var player = Players[i];
player.OwnedGuilds = Guilds.Where(t => t.OwnerId == player.CharacterId).ToList();
player.Guild = Guilds.SingleOrDefault(t => t.GuildId == player.GuildId);
}
for (var i = 0; i < Guilds.Count; i++)
{
var guild = Guilds[i];
guild.Owner = Players.SingleOrDefault(p => p.CharacterId == guild.OwnerId);
guild.Players = Players.Where(p => p.GuildId == guild.GuildId).ToList();
}
}
}
}

View file

@ -0,0 +1,77 @@
using ConanData.DataAccess;
using ConanData.Database;
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
namespace ConanData
{
/// <summary>
/// The container for the Game Server data.
/// </summary>
public partial class DataContainer
{
/// <summary>
/// Instantiates the LDataContainer and parses all the user data files
/// </summary>
public static DataContainer Create(string dataFile)
{
if (string.IsNullOrWhiteSpace(dataFile) || !File.Exists(dataFile))
return new DataContainer();
var connectionString = $"Data Source={dataFile};Version=3;Read Only=True;";
var connection = Connection.CreateConnection(connectionString, true);
var accountDataAccess = new AccountDataAccess(connection);
var accountData = accountDataAccess.FetchDataSetAll();
var charactersDataAccess = new CharactersDataAccess(connection);
var charactersData = charactersDataAccess.FetchDataSetAll();
var guildsDataAccess = new GuildsDataAccess(connection);
var guildsData = guildsDataAccess.FetchDataSetAll();
connection.DeregisterConnection();
var container = new DataContainer();
foreach (var character in charactersData.Characters)
{
var account = accountData.Account.FirstOrDefault(a => a.AccountId == character.AccountId);
container.Players.Add(Parser.ParsePlayer(account, character));
}
foreach (var guild in guildsData.Guilds)
{
container.Guilds.Add(Parser.ParseGuild(guild));
}
container.LinkPlayerGuild();
return container;
}
/// <summary>
/// Instantiates the DataContainer and parses the characters table
/// </summary>
/// <returns>The async task context containing the resulting container.</returns>
public static int GetOnlinePlayerCount(string dataFile)
{
if (string.IsNullOrWhiteSpace(dataFile) || !File.Exists(dataFile))
return 0;
var connectionString = $"Data Source={dataFile};Version=3;Read Only=True;";
var connection = Connection.CreateConnection(connectionString, true);
var accountDataAccess = new AccountDataAccess(connection);
var accountData = accountDataAccess.FetchDataSetOnlineOnly();
int result = accountData?.Account.Count ?? 0;
connection.DeregisterConnection();
return result;
}
}
}

View file

@ -0,0 +1,368 @@
using System;
using System.Data;
using System.Data.Common;
namespace ConanData.Database
{
public sealed class Connection : IDisposable
{
#region Structures, Constants and Enums
public const int DEFAULT_COMMAND_TIMEOUT = 300;
#endregion
#region Constructors, Destructors and Dispose
private Connection(string connectionString)
{
ConnectionString = connectionString;
}
~Connection()
{
Dispose();
}
public void Dispose()
{
DeregisterConnection();
}
#endregion
#region Properties
public string ConnectionString { get; set; } = string.Empty;
public System.Data.SQLite.SQLiteConnection DBConnection { get; set; } = null;
#endregion
#region Methods
#region Connection
public static Connection CreateConnection(string connectionString, bool openConnection = false)
{
var connection = new Connection(connectionString);
if (openConnection)
{
connection.RegisterConnection();
}
return connection;
}
public void DeregisterConnection()
{
if (DBConnection != null && DBConnection.State != ConnectionState.Closed)
{
DBConnection?.Close();
DBConnection?.Dispose();
}
DBConnection = null;
}
private DbConnection GetConnection()
{
if (DBConnection == null || DBConnection.State == ConnectionState.Closed)
{
throw new InvalidOperationException("You must register a connection to the Database.");
}
return DBConnection;
}
public void RegisterConnection()
{
if (DBConnection == null || DBConnection.State == ConnectionState.Closed)
{
DBConnection = new System.Data.SQLite.SQLiteConnection(ConnectionString);
DBConnection.Open();
}
}
#endregion
#region Command
public DbCommand GetCommand()
{
DbConnection connection = GetConnection();
DbCommand command = connection.CreateCommand();
return command;
}
private static void SetCommandTimeout(DbCommand command, int commandTimeout)
{
if (command == null)
{
return;
}
commandTimeout = Math.Max(0, commandTimeout);
try
{
command.CommandTimeout = commandTimeout;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
#endregion
#region DataAdapter
private DbDataAdapter GetNewDataAdapter()
{
return new System.Data.SQLite.SQLiteDataAdapter();
}
#endregion
#region DataReader
public DbDataReader ExecuteReader(string commandText, DbParameter[] parameters, CommandType commandType)
{
return ExecuteReader(commandText, parameters, commandType, DEFAULT_COMMAND_TIMEOUT, CommandBehavior.Default);
}
public DbDataReader ExecuteReader(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout)
{
return ExecuteReader(commandText, parameters, commandType, commandTimeout, CommandBehavior.Default);
}
public DbDataReader ExecuteReader(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, CommandBehavior commandBehavior)
{
DbCommand command = null;
DbDataReader reader = null;
try
{
command = GetCommand();
command.CommandText = commandText;
command.CommandType = commandType;
SetCommandTimeout(command, commandTimeout >= 0 ? commandTimeout : DEFAULT_COMMAND_TIMEOUT);
if (parameters != null)
{
ValidateNullParameters(parameters);
foreach (DbParameter parameter in parameters)
{
command.Parameters.Add(parameter);
}
}
reader = command.ExecuteReader(commandBehavior);
}
catch
{
if (reader != null && reader.IsClosed == false)
{
reader.Close();
}
if (command != null)
{
command.Dispose();
}
throw;
}
return reader;
}
#endregion
#region DataSet
public DataSet ExecuteDataSet(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout)
{
DataSet dataSet = new DataSet();
string[] tableNames = null;
FillDataSet(commandText, parameters, commandType, commandTimeout, dataSet, tableNames);
return dataSet;
}
public DataSet ExecuteDataSet(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, string[] tableNames)
{
DataSet dataSet = new DataSet();
FillDataSet(commandText, parameters, commandType, commandTimeout, dataSet, tableNames);
return dataSet;
}
public void ExecuteDataSet(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataSet dataSet)
{
string[] tableNames = null;
FillDataSet(commandText, parameters, commandType, commandTimeout, dataSet, tableNames);
}
public void ExecuteDataSet(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataSet dataSet, string[] tableNames)
{
FillDataSet(commandText, parameters, commandType, commandTimeout, dataSet, tableNames);
}
public void FillDataSet(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataSet dataSet, string[] tableNames)
{
if (string.IsNullOrWhiteSpace(commandText))
{
throw new ArgumentNullException("commandText", "The parameter 'commandText' cannot be null");
}
if (dataSet == null)
{
throw new ArgumentNullException("dataSet", "The parameter 'dataSet' cannot be null");
}
// Initialise command object
DbCommand command = GetCommand();
command.CommandText = commandText;
command.CommandType = commandType;
SetCommandTimeout(command, commandTimeout >= 0 ? commandTimeout : DEFAULT_COMMAND_TIMEOUT);
if (parameters != null)
{
ValidateNullParameters(parameters);
// Initialise command object parameters
foreach (DbParameter parameter in parameters)
{
command.Parameters.Add(parameter);
}
}
FillDataSet(command, dataSet, tableNames);
command.Dispose();
}
public void FillDataSet(DbCommand selectCommand, DataSet dataSet, string[] tableNames)
{
if (selectCommand == null)
{
throw new ArgumentNullException("selectCommand", "The parameter 'selectCommand' cannot be null");
}
if (dataSet == null)
{
throw new ArgumentNullException("dataSet", "The parameter 'dataSet' cannot be null");
}
// Create the DataAdapter
DbDataAdapter dataAdapter = GetNewDataAdapter();
// Add the table mappings specified by the user
if (tableNames != null && tableNames.Length > 0)
{
for (int i = 0; i < tableNames.Length; i++)
{
string tableName = (i == 0) ? "Table" : String.Format("Table{0}", i);
if (string.IsNullOrWhiteSpace(tableNames[i]))
{
throw new ArgumentException("The parameter 'tableNames' must contain a list of tables - a value was provided as null or empty string.", "tableNames");
}
dataAdapter.TableMappings.Add(tableName, tableNames[i]);
}
}
dataAdapter.SelectCommand = selectCommand;
if (dataAdapter.SelectCommand.Connection == null)
{
dataAdapter.SelectCommand.Connection = GetConnection();
}
dataAdapter.Fill(dataSet);
}
#endregion
#region DataTable
public DataTable ExecuteDataTable(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout)
{
DataTable dataTable = new DataTable();
FillDataTable(commandText, parameters, commandType, commandTimeout, dataTable, null);
return dataTable;
}
public DataTable ExecuteDataTable(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, string tableName)
{
DataTable dataTable = new DataTable();
FillDataTable(commandText, parameters, commandType, commandTimeout, dataTable, tableName);
return dataTable;
}
public void ExecuteDataTable(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataTable dataTable)
{
FillDataTable(commandText, parameters, commandType, commandTimeout, dataTable, null);
}
public void ExecuteDataTable(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataTable dataTable, string tableName)
{
FillDataTable(commandText, parameters, commandType, commandTimeout, dataTable, tableName);
}
public void FillDataTable(string commandText, DbParameter[] parameters, CommandType commandType, int commandTimeout, DataTable dataTable, string tableName)
{
if (string.IsNullOrWhiteSpace(commandText))
{
throw new ArgumentNullException("commandText", "The parameter 'commandText' cannot be null");
}
if (dataTable == null)
{
throw new ArgumentNullException("dataTable", "The parameter 'dataTable' cannot be null");
}
// Initialise command object
DbCommand command = GetCommand();
command.CommandText = commandText;
command.CommandType = commandType;
SetCommandTimeout(command, commandTimeout >= 0 ? commandTimeout : DEFAULT_COMMAND_TIMEOUT);
if (parameters != null)
{
ValidateNullParameters(parameters);
// Initialise command object parameters
foreach (DbParameter parameter in parameters)
{
command.Parameters.Add(parameter);
}
}
FillDataTable(command, dataTable, tableName);
command.Dispose();
}
public void FillDataTable(DbCommand selectCommand, DataTable dataTable, string tableName)
{
if (selectCommand == null)
{
throw new ArgumentNullException("selectCommand", "The parameter 'selectCommand' cannot be null");
}
if (dataTable == null)
{
throw new ArgumentNullException("dataTable", "The parameter 'dataTable' cannot be null");
}
// Create the DataAdapter
DbDataAdapter dataAdapter = GetNewDataAdapter();
// Add the table mappings specified by the user
if (!string.IsNullOrWhiteSpace(tableName))
{
dataAdapter.TableMappings.Add("Table", tableName);
}
dataAdapter.SelectCommand = selectCommand;
if (dataAdapter.SelectCommand.Connection == null)
{
dataAdapter.SelectCommand.Connection = GetConnection();
}
dataAdapter.Fill(dataTable);
}
#endregion
#region Parameter
public DbParameter CreateParameter(string parameterName, ParameterDirection direction)
{
DbParameter parameter = new System.Data.SQLite.SQLiteParameter();
parameter.ParameterName = parameterName;
parameter.Direction = direction;
return parameter;
}
public DbParameter CreateParameter(string parameterName, ParameterDirection direction, object value)
{
DbParameter parameter = CreateParameter(parameterName, direction);
parameter.Value = value;
return parameter;
}
public DbParameter CreateParameter(string parameterName, ParameterDirection direction, string sourceColumn, DataRowVersion sourceVersion)
{
DbParameter parameter = CreateParameter(parameterName, direction);
parameter.SourceColumn = sourceColumn;
parameter.SourceVersion = sourceVersion;
return parameter;
}
public static void ValidateNullParameters(DbParameter[] parameters)
{
foreach (DbParameter param in parameters)
{
if (param.Value == null)
{
param.Value = DBNull.Value;
}
}
}
#endregion
#endregion
}
}

View file

@ -0,0 +1,649 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace ConanData.Datasets {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("AccountDataSet")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
internal partial class AccountDataSet : global::System.Data.DataSet {
private AccountDataTable tableAccount;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountDataSet() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected AccountDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Account"] != null)) {
base.Tables.Add(new AccountDataTable(ds.Tables["Account"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public AccountDataTable Account {
get {
return this.tableAccount;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataSet Clone() {
AccountDataSet cln = ((AccountDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Account"] != null)) {
base.Tables.Add(new AccountDataTable(ds.Tables["Account"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars(bool initTable) {
this.tableAccount = ((AccountDataTable)(base.Tables["Account"]));
if ((initTable == true)) {
if ((this.tableAccount != null)) {
this.tableAccount.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.DataSetName = "AccountDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/Account.xsd";
this.Locale = new global::System.Globalization.CultureInfo("en");
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableAccount = new AccountDataTable();
base.Tables.Add(this.tableAccount);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeAccount() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
AccountDataSet ds = new AccountDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void AccountRowChangeEventHandler(object sender, AccountRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class AccountDataTable : global::System.Data.TypedTableBase<AccountRow> {
private global::System.Data.DataColumn columnAccountId;
private global::System.Data.DataColumn columnUser;
private global::System.Data.DataColumn columnOnline;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountDataTable() {
this.TableName = "Account";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal AccountDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected AccountDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn AccountIdColumn {
get {
return this.columnAccountId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn UserColumn {
get {
return this.columnUser;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OnlineColumn {
get {
return this.columnOnline;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRow this[int index] {
get {
return ((AccountRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event AccountRowChangeEventHandler AccountRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event AccountRowChangeEventHandler AccountRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event AccountRowChangeEventHandler AccountRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event AccountRowChangeEventHandler AccountRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddAccountRow(AccountRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRow AddAccountRow(long AccountId, string User, bool Online) {
AccountRow rowAccountRow = ((AccountRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
AccountId,
User,
Online};
rowAccountRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAccountRow);
return rowAccountRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRow FindByUser(string User) {
return ((AccountRow)(this.Rows.Find(new object[] {
User})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
AccountDataTable cln = ((AccountDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new AccountDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnAccountId = base.Columns["AccountId"];
this.columnUser = base.Columns["User"];
this.columnOnline = base.Columns["Online"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnAccountId = new global::System.Data.DataColumn("AccountId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAccountId);
this.columnUser = new global::System.Data.DataColumn("User", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUser);
this.columnOnline = new global::System.Data.DataColumn("Online", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOnline);
this.Constraints.Add(new global::System.Data.UniqueConstraint("PK_Account", new global::System.Data.DataColumn[] {
this.columnUser}, true));
this.columnAccountId.AllowDBNull = false;
this.columnUser.AllowDBNull = false;
this.columnUser.Unique = true;
this.columnUser.MaxLength = 255;
this.columnOnline.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRow NewAccountRow() {
return ((AccountRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new AccountRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(AccountRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.AccountRowChanged != null)) {
this.AccountRowChanged(this, new AccountRowChangeEvent(((AccountRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.AccountRowChanging != null)) {
this.AccountRowChanging(this, new AccountRowChangeEvent(((AccountRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.AccountRowDeleted != null)) {
this.AccountRowDeleted(this, new AccountRowChangeEvent(((AccountRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.AccountRowDeleting != null)) {
this.AccountRowDeleting(this, new AccountRowChangeEvent(((AccountRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveAccountRow(AccountRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
AccountDataSet ds = new AccountDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "AccountDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class AccountRow : global::System.Data.DataRow {
private AccountDataTable tableAccount;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal AccountRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableAccount = ((AccountDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long AccountId {
get {
return ((long)(this[this.tableAccount.AccountIdColumn]));
}
set {
this[this.tableAccount.AccountIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string User {
get {
return ((string)(this[this.tableAccount.UserColumn]));
}
set {
this[this.tableAccount.UserColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Online {
get {
return ((bool)(this[this.tableAccount.OnlineColumn]));
}
set {
this[this.tableAccount.OnlineColumn] = value;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class AccountRowChangeEvent : global::System.EventArgs {
private AccountRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRowChangeEvent(AccountRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AccountRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AccountDataSet" targetNamespace="http://tempuri.org/Account.xsd" xmlns:mstns="http://tempuri.org/Account.xsd" xmlns="http://tempuri.org/Account.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="NotPublic" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="AccountDataSet" msdata:IsDataSet="true" msdata:Locale="en" msprop:Generator_DataSetName="AccountDataSet" msprop:Generator_UserDSName="AccountDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Account" msprop:Generator_TableClassName="AccountDataTable" msprop:Generator_RowEvArgName="AccountRowChangeEvent" msprop:Generator_TableVarName="tableAccount" msprop:Generator_TablePropName="Account" msprop:Generator_RowDeletingName="AccountRowDeleting" msprop:Generator_RowChangingName="AccountRowChanging" msprop:Generator_RowEvHandlerName="AccountRowChangeEventHandler" msprop:Generator_RowDeletedName="AccountRowDeleted" msprop:Generator_UserTableName="Account" msprop:Generator_RowChangedName="AccountRowChanged" msprop:Generator_RowClassName="AccountRow">
<xs:complexType>
<xs:sequence>
<xs:element name="AccountId" msprop:Generator_ColumnVarNameInTable="columnAccountId" msprop:Generator_ColumnPropNameInRow="AccountId" msprop:Generator_ColumnPropNameInTable="AccountIdColumn" msprop:Generator_UserColumnName="AccountId" type="xs:long" />
<xs:element name="User" msprop:Generator_ColumnVarNameInTable="columnUser" msprop:Generator_ColumnPropNameInRow="User" msprop:Generator_ColumnPropNameInTable="UserColumn" msprop:Generator_UserColumnName="User">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Online" msprop:Generator_ColumnVarNameInTable="columnOnline" msprop:Generator_ColumnPropNameInRow="Online" msprop:Generator_ColumnPropNameInTable="OnlineColumn" msprop:Generator_UserColumnName="Online" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="PK_Account" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Account" />
<xs:field xpath="mstns:User" />
</xs:unique>
</xs:element>
</xs:schema>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-26" ViewPortY="-12" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Account" ZOrder="1" X="-16" Y="-2" Height="98" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="94" />
</Shapes>
<Connectors />
</DiagramLayout>

View file

@ -0,0 +1,728 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace ConanData.Datasets {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("CharacterStatsDataSet")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
internal partial class CharacterStatsDataSet : global::System.Data.DataSet {
private CharacterStatsDataTable tableCharacterStats;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsDataSet() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected CharacterStatsDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["CharacterStats"] != null)) {
base.Tables.Add(new CharacterStatsDataTable(ds.Tables["CharacterStats"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public CharacterStatsDataTable CharacterStats {
get {
return this.tableCharacterStats;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataSet Clone() {
CharacterStatsDataSet cln = ((CharacterStatsDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["CharacterStats"] != null)) {
base.Tables.Add(new CharacterStatsDataTable(ds.Tables["CharacterStats"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars(bool initTable) {
this.tableCharacterStats = ((CharacterStatsDataTable)(base.Tables["CharacterStats"]));
if ((initTable == true)) {
if ((this.tableCharacterStats != null)) {
this.tableCharacterStats.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.DataSetName = "CharacterStatsDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/CharacterStats.xsd";
this.Locale = new global::System.Globalization.CultureInfo("en");
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableCharacterStats = new CharacterStatsDataTable();
base.Tables.Add(this.tableCharacterStats);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeCharacterStats() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
CharacterStatsDataSet ds = new CharacterStatsDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void CharacterStatsRowChangeEventHandler(object sender, CharacterStatsRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CharacterStatsDataTable : global::System.Data.TypedTableBase<CharacterStatsRow> {
private global::System.Data.DataColumn columnCharacterId;
private global::System.Data.DataColumn columnStatType;
private global::System.Data.DataColumn columnStatId;
private global::System.Data.DataColumn columnStatValue;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsDataTable() {
this.TableName = "CharacterStats";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal CharacterStatsDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected CharacterStatsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CharacterIdColumn {
get {
return this.columnCharacterId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn StatTypeColumn {
get {
return this.columnStatType;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn StatIdColumn {
get {
return this.columnStatId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn StatValueColumn {
get {
return this.columnStatValue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsRow this[int index] {
get {
return ((CharacterStatsRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharacterStatsRowChangeEventHandler CharacterStatsRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharacterStatsRowChangeEventHandler CharacterStatsRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharacterStatsRowChangeEventHandler CharacterStatsRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharacterStatsRowChangeEventHandler CharacterStatsRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddCharacterStatsRow(CharacterStatsRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsRow AddCharacterStatsRow(long CharacterId, long StatType, long StatId, double StatValue) {
CharacterStatsRow rowCharacterStatsRow = ((CharacterStatsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
CharacterId,
StatType,
StatId,
StatValue};
rowCharacterStatsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCharacterStatsRow);
return rowCharacterStatsRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
CharacterStatsDataTable cln = ((CharacterStatsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new CharacterStatsDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnCharacterId = base.Columns["CharacterId"];
this.columnStatType = base.Columns["StatType"];
this.columnStatId = base.Columns["StatId"];
this.columnStatValue = base.Columns["StatValue"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnCharacterId = new global::System.Data.DataColumn("CharacterId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCharacterId);
this.columnStatType = new global::System.Data.DataColumn("StatType", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStatType);
this.columnStatId = new global::System.Data.DataColumn("StatId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStatId);
this.columnStatValue = new global::System.Data.DataColumn("StatValue", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStatValue);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsRow NewCharacterStatsRow() {
return ((CharacterStatsRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new CharacterStatsRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(CharacterStatsRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CharacterStatsRowChanged != null)) {
this.CharacterStatsRowChanged(this, new CharacterStatsRowChangeEvent(((CharacterStatsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CharacterStatsRowChanging != null)) {
this.CharacterStatsRowChanging(this, new CharacterStatsRowChangeEvent(((CharacterStatsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CharacterStatsRowDeleted != null)) {
this.CharacterStatsRowDeleted(this, new CharacterStatsRowChangeEvent(((CharacterStatsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CharacterStatsRowDeleting != null)) {
this.CharacterStatsRowDeleting(this, new CharacterStatsRowChangeEvent(((CharacterStatsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveCharacterStatsRow(CharacterStatsRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
CharacterStatsDataSet ds = new CharacterStatsDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CharacterStatsDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class CharacterStatsRow : global::System.Data.DataRow {
private CharacterStatsDataTable tableCharacterStats;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal CharacterStatsRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableCharacterStats = ((CharacterStatsDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long CharacterId {
get {
try {
return ((long)(this[this.tableCharacterStats.CharacterIdColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CharacterId\' in table \'CharacterStats\' is DBNull.", e);
}
}
set {
this[this.tableCharacterStats.CharacterIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long StatType {
get {
try {
return ((long)(this[this.tableCharacterStats.StatTypeColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'StatType\' in table \'CharacterStats\' is DBNull.", e);
}
}
set {
this[this.tableCharacterStats.StatTypeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long StatId {
get {
try {
return ((long)(this[this.tableCharacterStats.StatIdColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'StatId\' in table \'CharacterStats\' is DBNull.", e);
}
}
set {
this[this.tableCharacterStats.StatIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double StatValue {
get {
try {
return ((double)(this[this.tableCharacterStats.StatValueColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'StatValue\' in table \'CharacterStats\' is DBNull.", e);
}
}
set {
this[this.tableCharacterStats.StatValueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsCharacterIdNull() {
return this.IsNull(this.tableCharacterStats.CharacterIdColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetCharacterIdNull() {
this[this.tableCharacterStats.CharacterIdColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsStatTypeNull() {
return this.IsNull(this.tableCharacterStats.StatTypeColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetStatTypeNull() {
this[this.tableCharacterStats.StatTypeColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsStatIdNull() {
return this.IsNull(this.tableCharacterStats.StatIdColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetStatIdNull() {
this[this.tableCharacterStats.StatIdColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsStatValueNull() {
return this.IsNull(this.tableCharacterStats.StatValueColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetStatValueNull() {
this[this.tableCharacterStats.StatValueColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class CharacterStatsRowChangeEvent : global::System.EventArgs {
private CharacterStatsRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsRowChangeEvent(CharacterStatsRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharacterStatsRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CharacterStatsDataSet" targetNamespace="http://tempuri.org/CharacterStats.xsd" xmlns:mstns="http://tempuri.org/CharacterStats.xsd" xmlns="http://tempuri.org/CharacterStats.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="NotPublic" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="CharacterStatsDataSet" msdata:IsDataSet="true" msdata:Locale="en" msprop:Generator_DataSetName="CharacterStatsDataSet" msprop:Generator_UserDSName="CharacterStatsDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="CharacterStats" msprop:Generator_TableClassName="CharacterStatsDataTable" msprop:Generator_RowEvArgName="CharacterStatsRowChangeEvent" msprop:Generator_TableVarName="tableCharacterStats" msprop:Generator_TablePropName="CharacterStats" msprop:Generator_RowDeletingName="CharacterStatsRowDeleting" msprop:Generator_RowChangingName="CharacterStatsRowChanging" msprop:Generator_RowEvHandlerName="CharacterStatsRowChangeEventHandler" msprop:Generator_RowDeletedName="CharacterStatsRowDeleted" msprop:Generator_RowChangedName="CharacterStatsRowChanged" msprop:Generator_UserTableName="CharacterStats" msprop:Generator_RowClassName="CharacterStatsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CharacterId" msprop:Generator_ColumnVarNameInTable="columnCharacterId" msprop:Generator_ColumnPropNameInRow="CharacterId" msprop:Generator_ColumnPropNameInTable="CharacterIdColumn" msprop:Generator_UserColumnName="CharacterId" type="xs:long" minOccurs="0" />
<xs:element name="StatType" msprop:Generator_ColumnVarNameInTable="columnStatType" msprop:Generator_ColumnPropNameInRow="StatType" msprop:Generator_ColumnPropNameInTable="StatTypeColumn" msprop:Generator_UserColumnName="StatType" type="xs:long" minOccurs="0" />
<xs:element name="StatId" msprop:Generator_ColumnVarNameInTable="columnStatId" msprop:Generator_ColumnPropNameInRow="StatId" msprop:Generator_ColumnPropNameInTable="StatIdColumn" msprop:Generator_UserColumnName="StatId" type="xs:long" minOccurs="0" />
<xs:element name="StatValue" msprop:Generator_ColumnVarNameInTable="columnStatValue" msprop:Generator_ColumnPropNameInRow="StatValue" msprop:Generator_ColumnPropNameInTable="StatValueColumn" msprop:Generator_UserColumnName="StatValue" type="xs:double" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-19" ViewPortY="-24" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:CharacterStats" ZOrder="1" X="-9" Y="-14" Height="120" Width="165" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="116" />
</Shapes>
<Connectors />
</DiagramLayout>

View file

@ -0,0 +1,833 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace ConanData.Datasets {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("CharactersDataSet")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
internal partial class CharactersDataSet : global::System.Data.DataSet {
private CharactersDataTable tableCharacters;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersDataSet() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected CharactersDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Characters"] != null)) {
base.Tables.Add(new CharactersDataTable(ds.Tables["Characters"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public CharactersDataTable Characters {
get {
return this.tableCharacters;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataSet Clone() {
CharactersDataSet cln = ((CharactersDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Characters"] != null)) {
base.Tables.Add(new CharactersDataTable(ds.Tables["Characters"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars(bool initTable) {
this.tableCharacters = ((CharactersDataTable)(base.Tables["Characters"]));
if ((initTable == true)) {
if ((this.tableCharacters != null)) {
this.tableCharacters.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.DataSetName = "CharactersDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/Characters.xsd";
this.Locale = new global::System.Globalization.CultureInfo("en");
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableCharacters = new CharactersDataTable();
base.Tables.Add(this.tableCharacters);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeCharacters() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
CharactersDataSet ds = new CharactersDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void CharactersRowChangeEventHandler(object sender, CharactersRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CharactersDataTable : global::System.Data.TypedTableBase<CharactersRow> {
private global::System.Data.DataColumn columnAccountId;
private global::System.Data.DataColumn columnCharacterId;
private global::System.Data.DataColumn columnCharacterName;
private global::System.Data.DataColumn columnLevel;
private global::System.Data.DataColumn columnRank;
private global::System.Data.DataColumn columnGuildId;
private global::System.Data.DataColumn columnIsAlive;
private global::System.Data.DataColumn columnLastTimeOnline;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersDataTable() {
this.TableName = "Characters";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal CharactersDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected CharactersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn AccountIdColumn {
get {
return this.columnAccountId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CharacterIdColumn {
get {
return this.columnCharacterId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CharacterNameColumn {
get {
return this.columnCharacterName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn LevelColumn {
get {
return this.columnLevel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn RankColumn {
get {
return this.columnRank;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn GuildIdColumn {
get {
return this.columnGuildId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn IsAliveColumn {
get {
return this.columnIsAlive;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn LastTimeOnlineColumn {
get {
return this.columnLastTimeOnline;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersRow this[int index] {
get {
return ((CharactersRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharactersRowChangeEventHandler CharactersRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharactersRowChangeEventHandler CharactersRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharactersRowChangeEventHandler CharactersRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event CharactersRowChangeEventHandler CharactersRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddCharactersRow(CharactersRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersRow AddCharactersRow(long AccountId, long CharacterId, string CharacterName, short Level, short Rank, long GuildId, bool IsAlive, int LastTimeOnline) {
CharactersRow rowCharactersRow = ((CharactersRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
AccountId,
CharacterId,
CharacterName,
Level,
Rank,
GuildId,
IsAlive,
LastTimeOnline};
rowCharactersRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCharactersRow);
return rowCharactersRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
CharactersDataTable cln = ((CharactersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new CharactersDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnAccountId = base.Columns["AccountId"];
this.columnCharacterId = base.Columns["CharacterId"];
this.columnCharacterName = base.Columns["CharacterName"];
this.columnLevel = base.Columns["Level"];
this.columnRank = base.Columns["Rank"];
this.columnGuildId = base.Columns["GuildId"];
this.columnIsAlive = base.Columns["IsAlive"];
this.columnLastTimeOnline = base.Columns["LastTimeOnline"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnAccountId = new global::System.Data.DataColumn("AccountId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAccountId);
this.columnCharacterId = new global::System.Data.DataColumn("CharacterId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCharacterId);
this.columnCharacterName = new global::System.Data.DataColumn("CharacterName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCharacterName);
this.columnLevel = new global::System.Data.DataColumn("Level", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnLevel);
this.columnRank = new global::System.Data.DataColumn("Rank", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRank);
this.columnGuildId = new global::System.Data.DataColumn("GuildId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnGuildId);
this.columnIsAlive = new global::System.Data.DataColumn("IsAlive", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIsAlive);
this.columnLastTimeOnline = new global::System.Data.DataColumn("LastTimeOnline", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnLastTimeOnline);
this.columnAccountId.AllowDBNull = false;
this.columnCharacterId.AllowDBNull = false;
this.columnCharacterName.AllowDBNull = false;
this.columnCharacterName.MaxLength = 255;
this.columnIsAlive.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersRow NewCharactersRow() {
return ((CharactersRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new CharactersRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(CharactersRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CharactersRowChanged != null)) {
this.CharactersRowChanged(this, new CharactersRowChangeEvent(((CharactersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CharactersRowChanging != null)) {
this.CharactersRowChanging(this, new CharactersRowChangeEvent(((CharactersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CharactersRowDeleted != null)) {
this.CharactersRowDeleted(this, new CharactersRowChangeEvent(((CharactersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CharactersRowDeleting != null)) {
this.CharactersRowDeleting(this, new CharactersRowChangeEvent(((CharactersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveCharactersRow(CharactersRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
CharactersDataSet ds = new CharactersDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CharactersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class CharactersRow : global::System.Data.DataRow {
private CharactersDataTable tableCharacters;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal CharactersRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableCharacters = ((CharactersDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long AccountId {
get {
return ((long)(this[this.tableCharacters.AccountIdColumn]));
}
set {
this[this.tableCharacters.AccountIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long CharacterId {
get {
return ((long)(this[this.tableCharacters.CharacterIdColumn]));
}
set {
this[this.tableCharacters.CharacterIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string CharacterName {
get {
return ((string)(this[this.tableCharacters.CharacterNameColumn]));
}
set {
this[this.tableCharacters.CharacterNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public short Level {
get {
try {
return ((short)(this[this.tableCharacters.LevelColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Level\' in table \'Characters\' is DBNull.", e);
}
}
set {
this[this.tableCharacters.LevelColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public short Rank {
get {
try {
return ((short)(this[this.tableCharacters.RankColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Rank\' in table \'Characters\' is DBNull.", e);
}
}
set {
this[this.tableCharacters.RankColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long GuildId {
get {
try {
return ((long)(this[this.tableCharacters.GuildIdColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'GuildId\' in table \'Characters\' is DBNull.", e);
}
}
set {
this[this.tableCharacters.GuildIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsAlive {
get {
return ((bool)(this[this.tableCharacters.IsAliveColumn]));
}
set {
this[this.tableCharacters.IsAliveColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int LastTimeOnline {
get {
try {
return ((int)(this[this.tableCharacters.LastTimeOnlineColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'LastTimeOnline\' in table \'Characters\' is DBNull.", e);
}
}
set {
this[this.tableCharacters.LastTimeOnlineColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsLevelNull() {
return this.IsNull(this.tableCharacters.LevelColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetLevelNull() {
this[this.tableCharacters.LevelColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsRankNull() {
return this.IsNull(this.tableCharacters.RankColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetRankNull() {
this[this.tableCharacters.RankColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsGuildIdNull() {
return this.IsNull(this.tableCharacters.GuildIdColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetGuildIdNull() {
this[this.tableCharacters.GuildIdColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsLastTimeOnlineNull() {
return this.IsNull(this.tableCharacters.LastTimeOnlineColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetLastTimeOnlineNull() {
this[this.tableCharacters.LastTimeOnlineColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class CharactersRowChangeEvent : global::System.EventArgs {
private CharactersRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersRowChangeEvent(CharactersRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public CharactersRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>

View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CharactersDataSet" targetNamespace="http://tempuri.org/Characters.xsd" xmlns:mstns="http://tempuri.org/Characters.xsd" xmlns="http://tempuri.org/Characters.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="NotPublic" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="CharactersDataSet" msdata:IsDataSet="true" msdata:Locale="en" msprop:Generator_DataSetName="CharactersDataSet" msprop:Generator_UserDSName="CharactersDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Characters" msprop:Generator_TableClassName="CharactersDataTable" msprop:Generator_RowEvArgName="CharactersRowChangeEvent" msprop:Generator_TableVarName="tableCharacters" msprop:Generator_TablePropName="Characters" msprop:Generator_RowDeletingName="CharactersRowDeleting" msprop:Generator_RowChangingName="CharactersRowChanging" msprop:Generator_RowEvHandlerName="CharactersRowChangeEventHandler" msprop:Generator_RowDeletedName="CharactersRowDeleted" msprop:Generator_UserTableName="Characters" msprop:Generator_RowChangedName="CharactersRowChanged" msprop:Generator_RowClassName="CharactersRow">
<xs:complexType>
<xs:sequence>
<xs:element name="AccountId" msprop:Generator_ColumnVarNameInTable="columnAccountId" msprop:Generator_ColumnPropNameInRow="AccountId" msprop:Generator_ColumnPropNameInTable="AccountIdColumn" msprop:Generator_UserColumnName="AccountId" type="xs:long" />
<xs:element name="CharacterId" msprop:Generator_ColumnVarNameInTable="columnCharacterId" msprop:Generator_ColumnPropNameInRow="CharacterId" msprop:Generator_ColumnPropNameInTable="CharacterIdColumn" msprop:Generator_UserColumnName="CharacterId" type="xs:long" />
<xs:element name="CharacterName" msprop:Generator_ColumnVarNameInTable="columnCharacterName" msprop:Generator_ColumnPropNameInRow="CharacterName" msprop:Generator_ColumnPropNameInTable="CharacterNameColumn" msprop:Generator_UserColumnName="CharacterName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Level" msprop:Generator_ColumnVarNameInTable="columnLevel" msprop:Generator_ColumnPropNameInRow="Level" msprop:Generator_ColumnPropNameInTable="LevelColumn" msprop:Generator_UserColumnName="Level" type="xs:short" minOccurs="0" />
<xs:element name="Rank" msprop:Generator_ColumnVarNameInTable="columnRank" msprop:Generator_ColumnPropNameInRow="Rank" msprop:Generator_ColumnPropNameInTable="RankColumn" msprop:Generator_UserColumnName="Rank" type="xs:short" minOccurs="0" />
<xs:element name="GuildId" msprop:Generator_ColumnVarNameInTable="columnGuildId" msprop:Generator_ColumnPropNameInRow="GuildId" msprop:Generator_ColumnPropNameInTable="GuildIdColumn" msprop:Generator_UserColumnName="GuildId" type="xs:long" minOccurs="0" />
<xs:element name="IsAlive" msprop:Generator_ColumnVarNameInTable="columnIsAlive" msprop:Generator_ColumnPropNameInRow="IsAlive" msprop:Generator_ColumnPropNameInTable="IsAliveColumn" msprop:Generator_UserColumnName="IsAlive" type="xs:boolean" />
<xs:element name="LastTimeOnline" msprop:Generator_ColumnVarNameInTable="columnLastTimeOnline" msprop:Generator_ColumnPropNameInRow="LastTimeOnline" msprop:Generator_ColumnPropNameInTable="LastTimeOnlineColumn" msprop:Generator_UserColumnName="LastTimeOnline" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-11" ViewPortY="-12" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Characters" ZOrder="1" X="-1" Y="-2" Height="208" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="204" />
</Shapes>
<Connectors />
</DiagramLayout>

View file

@ -0,0 +1,760 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace ConanData.Datasets {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("GuildsDataSet")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
internal partial class GuildsDataSet : global::System.Data.DataSet {
private GuildsDataTable tableGuilds;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsDataSet() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected GuildsDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Guilds"] != null)) {
base.Tables.Add(new GuildsDataTable(ds.Tables["Guilds"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public GuildsDataTable Guilds {
get {
return this.tableGuilds;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataSet Clone() {
GuildsDataSet cln = ((GuildsDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Guilds"] != null)) {
base.Tables.Add(new GuildsDataTable(ds.Tables["Guilds"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars(bool initTable) {
this.tableGuilds = ((GuildsDataTable)(base.Tables["Guilds"]));
if ((initTable == true)) {
if ((this.tableGuilds != null)) {
this.tableGuilds.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.DataSetName = "GuildsDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/Guilds.xsd";
this.Locale = new global::System.Globalization.CultureInfo("en");
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableGuilds = new GuildsDataTable();
base.Tables.Add(this.tableGuilds);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeGuilds() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
GuildsDataSet ds = new GuildsDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void GuildsRowChangeEventHandler(object sender, GuildsRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class GuildsDataTable : global::System.Data.TypedTableBase<GuildsRow> {
private global::System.Data.DataColumn columnGuildId;
private global::System.Data.DataColumn columnName;
private global::System.Data.DataColumn columnMessageOfTheDay;
private global::System.Data.DataColumn columnOwnerId;
private global::System.Data.DataColumn columnNameLastChangedBy;
private global::System.Data.DataColumn columnMotdLastChangedBy;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsDataTable() {
this.TableName = "Guilds";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal GuildsDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected GuildsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn GuildIdColumn {
get {
return this.columnGuildId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn NameColumn {
get {
return this.columnName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn MessageOfTheDayColumn {
get {
return this.columnMessageOfTheDay;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OwnerIdColumn {
get {
return this.columnOwnerId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn NameLastChangedByColumn {
get {
return this.columnNameLastChangedBy;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn MotdLastChangedByColumn {
get {
return this.columnMotdLastChangedBy;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRow this[int index] {
get {
return ((GuildsRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event GuildsRowChangeEventHandler GuildsRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event GuildsRowChangeEventHandler GuildsRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event GuildsRowChangeEventHandler GuildsRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event GuildsRowChangeEventHandler GuildsRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddGuildsRow(GuildsRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRow AddGuildsRow(long GuildId, string Name, string MessageOfTheDay, long OwnerId, long NameLastChangedBy, long MotdLastChangedBy) {
GuildsRow rowGuildsRow = ((GuildsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
GuildId,
Name,
MessageOfTheDay,
OwnerId,
NameLastChangedBy,
MotdLastChangedBy};
rowGuildsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowGuildsRow);
return rowGuildsRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRow FindByGuildId(long GuildId) {
return ((GuildsRow)(this.Rows.Find(new object[] {
GuildId})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
GuildsDataTable cln = ((GuildsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new GuildsDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnGuildId = base.Columns["GuildId"];
this.columnName = base.Columns["Name"];
this.columnMessageOfTheDay = base.Columns["MessageOfTheDay"];
this.columnOwnerId = base.Columns["OwnerId"];
this.columnNameLastChangedBy = base.Columns["NameLastChangedBy"];
this.columnMotdLastChangedBy = base.Columns["MotdLastChangedBy"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnGuildId = new global::System.Data.DataColumn("GuildId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnGuildId);
this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnName);
this.columnMessageOfTheDay = new global::System.Data.DataColumn("MessageOfTheDay", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMessageOfTheDay);
this.columnOwnerId = new global::System.Data.DataColumn("OwnerId", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOwnerId);
this.columnNameLastChangedBy = new global::System.Data.DataColumn("NameLastChangedBy", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNameLastChangedBy);
this.columnMotdLastChangedBy = new global::System.Data.DataColumn("MotdLastChangedBy", typeof(long), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMotdLastChangedBy);
this.Constraints.Add(new global::System.Data.UniqueConstraint("PK_Guilds", new global::System.Data.DataColumn[] {
this.columnGuildId}, true));
this.columnGuildId.AllowDBNull = false;
this.columnGuildId.Unique = true;
this.columnName.MaxLength = 255;
this.columnMessageOfTheDay.MaxLength = 255;
this.columnOwnerId.AllowDBNull = false;
this.columnNameLastChangedBy.AllowDBNull = false;
this.columnMotdLastChangedBy.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRow NewGuildsRow() {
return ((GuildsRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new GuildsRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(GuildsRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.GuildsRowChanged != null)) {
this.GuildsRowChanged(this, new GuildsRowChangeEvent(((GuildsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.GuildsRowChanging != null)) {
this.GuildsRowChanging(this, new GuildsRowChangeEvent(((GuildsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.GuildsRowDeleted != null)) {
this.GuildsRowDeleted(this, new GuildsRowChangeEvent(((GuildsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.GuildsRowDeleting != null)) {
this.GuildsRowDeleting(this, new GuildsRowChangeEvent(((GuildsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveGuildsRow(GuildsRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
GuildsDataSet ds = new GuildsDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "GuildsDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class GuildsRow : global::System.Data.DataRow {
private GuildsDataTable tableGuilds;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal GuildsRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableGuilds = ((GuildsDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long GuildId {
get {
return ((long)(this[this.tableGuilds.GuildIdColumn]));
}
set {
this[this.tableGuilds.GuildIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Name {
get {
try {
return ((string)(this[this.tableGuilds.NameColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Guilds\' is DBNull.", e);
}
}
set {
this[this.tableGuilds.NameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string MessageOfTheDay {
get {
try {
return ((string)(this[this.tableGuilds.MessageOfTheDayColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'MessageOfTheDay\' in table \'Guilds\' is DBNull.", e);
}
}
set {
this[this.tableGuilds.MessageOfTheDayColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long OwnerId {
get {
return ((long)(this[this.tableGuilds.OwnerIdColumn]));
}
set {
this[this.tableGuilds.OwnerIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long NameLastChangedBy {
get {
return ((long)(this[this.tableGuilds.NameLastChangedByColumn]));
}
set {
this[this.tableGuilds.NameLastChangedByColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public long MotdLastChangedBy {
get {
return ((long)(this[this.tableGuilds.MotdLastChangedByColumn]));
}
set {
this[this.tableGuilds.MotdLastChangedByColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsNameNull() {
return this.IsNull(this.tableGuilds.NameColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetNameNull() {
this[this.tableGuilds.NameColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsMessageOfTheDayNull() {
return this.IsNull(this.tableGuilds.MessageOfTheDayColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetMessageOfTheDayNull() {
this[this.tableGuilds.MessageOfTheDayColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class GuildsRowChangeEvent : global::System.EventArgs {
private GuildsRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRowChangeEvent(GuildsRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public GuildsRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>

View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GuildsDataSet" targetNamespace="http://tempuri.org/Guilds.xsd" xmlns:mstns="http://tempuri.org/Guilds.xsd" xmlns="http://tempuri.org/Guilds.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="NotPublic" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="GuildsDataSet" msdata:IsDataSet="true" msdata:Locale="en" msprop:Generator_DataSetName="GuildsDataSet" msprop:Generator_UserDSName="GuildsDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Guilds" msprop:Generator_TableClassName="GuildsDataTable" msprop:Generator_RowEvArgName="GuildsRowChangeEvent" msprop:Generator_TableVarName="tableGuilds" msprop:Generator_TablePropName="Guilds" msprop:Generator_RowDeletingName="GuildsRowDeleting" msprop:Generator_RowChangingName="GuildsRowChanging" msprop:Generator_RowEvHandlerName="GuildsRowChangeEventHandler" msprop:Generator_RowDeletedName="GuildsRowDeleted" msprop:Generator_RowChangedName="GuildsRowChanged" msprop:Generator_UserTableName="Guilds" msprop:Generator_RowClassName="GuildsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="GuildId" msprop:Generator_ColumnVarNameInTable="columnGuildId" msprop:Generator_ColumnPropNameInRow="GuildId" msprop:Generator_ColumnPropNameInTable="GuildIdColumn" msprop:Generator_UserColumnName="GuildId" type="xs:long" />
<xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MessageOfTheDay" msprop:Generator_ColumnVarNameInTable="columnMessageOfTheDay" msprop:Generator_ColumnPropNameInRow="MessageOfTheDay" msprop:Generator_ColumnPropNameInTable="MessageOfTheDayColumn" msprop:Generator_UserColumnName="MessageOfTheDay" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OwnerId" msprop:Generator_ColumnVarNameInTable="columnOwnerId" msprop:Generator_ColumnPropNameInRow="OwnerId" msprop:Generator_ColumnPropNameInTable="OwnerIdColumn" msprop:Generator_UserColumnName="OwnerId" type="xs:long" />
<xs:element name="NameLastChangedBy" msprop:Generator_ColumnVarNameInTable="columnNameLastChangedBy" msprop:Generator_ColumnPropNameInRow="NameLastChangedBy" msprop:Generator_ColumnPropNameInTable="NameLastChangedByColumn" msprop:Generator_UserColumnName="NameLastChangedBy" type="xs:long" />
<xs:element name="MotdLastChangedBy" msprop:Generator_ColumnVarNameInTable="columnMotdLastChangedBy" msprop:Generator_ColumnPropNameInRow="MotdLastChangedBy" msprop:Generator_ColumnPropNameInTable="MotdLastChangedByColumn" msprop:Generator_UserColumnName="MotdLastChangedBy" type="xs:long" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="PK_Guilds" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Guilds" />
<xs:field xpath="mstns:GuildId" />
</xs:unique>
</xs:element>
</xs:schema>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="-5" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Guilds" ZOrder="1" X="13" Y="5" Height="165" Width="191" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="161" />
</Shapes>
<Connectors />
</DiagramLayout>

View file

@ -0,0 +1,18 @@
using System.Collections.Generic;
namespace ConanData
{
public class GuildData
{
public long GuildId { get; set; }
public string GuildName { get; set; }
public long? OwnerId { get; set; }
public virtual ICollection<PlayerData> Players { get; set; }
public virtual PlayerData Owner { get; set; }
public GuildData()
{
this.Players = new HashSet<PlayerData>();
}
}
}

View file

@ -0,0 +1,23 @@
using ConanData.Datasets;
using System.Threading.Tasks;
namespace ConanData
{
internal partial class Parser
{
public static GuildData ParseGuild(GuildsDataSet.GuildsRow guildRow)
{
return new GuildData()
{
GuildId = guildRow.GuildId,
GuildName = guildRow.Name,
OwnerId = guildRow.OwnerId,
};
}
public static Task<GuildData> ParseGuildAsync(GuildsDataSet.GuildsRow guildRow)
{
return Task.Run(() => ParseGuild(guildRow));
}
}
}

View file

@ -0,0 +1,9 @@
using System.Collections.Generic;
namespace ConanData.Models
{
internal class SteamPlayerResponse<T>
{
public List<T> players { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace ConanData.Models
{
internal class SteamProfile
{
public string steamid { get; set; }
public string personaname { get; set; }
}
}

View file

@ -0,0 +1,7 @@
namespace ConanData.Models
{
internal class SteamResponse<T>
{
public SteamPlayerResponse<T> response { get; set; }
}
}

View file

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace ConanData
{
public class PlayerData
{
public string PlayerId { get; set; }
public string PlayerName { get; set; }
public long CharacterId { get; set; }
public string CharacterName { get; set; }
public bool Online { get; set; }
public long? GuildId { get; set; }
public short Level { get; set; }
public virtual GuildData Guild { get; set; }
public virtual List<GuildData> OwnedGuilds { get; set; }
public int? LastOnline { get; set; }
public DateTime LastPlatformUpdateUtc { get; set; }
}
}

View file

@ -0,0 +1,31 @@
using ConanData.Datasets;
using System.Threading.Tasks;
namespace ConanData
{
internal partial class Parser
{
public static PlayerData ParsePlayer(AccountDataSet.AccountRow accountRow, CharactersDataSet.CharactersRow characterRow)
{
if (characterRow == null)
return new PlayerData();
return new PlayerData()
{
PlayerId = accountRow?.User ?? string.Empty,
PlayerName = string.Empty,
CharacterId = characterRow.CharacterId,
CharacterName = characterRow.CharacterName,
GuildId = characterRow.IsGuildIdNull() ? (long?)null : characterRow.GuildId,
Level = characterRow.IsLevelNull() ? (short)1 : characterRow.Level,
LastOnline = characterRow.IsLastTimeOnlineNull() ? (int?)null : characterRow.LastTimeOnline,
Online = accountRow?.Online ?? false,
};
}
public static Task<PlayerData> ParsePlayerAsync(AccountDataSet.AccountRow accountRow, CharactersDataSet.CharactersRow characterRow)
{
return Task.Run(() => ParsePlayer(accountRow, characterRow));
}
}
}

View file

@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ConanData SDK")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Bletch1971")]
[assembly: AssemblyProduct("ConanData SDK")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("96832688-29bd-464f-9dce-482e37bfc751")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]