PageRenderTime 36ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/Child Projects/Rawr.Server/Rawr.Server/RawrDB.designer.cs

#
C# | 404 lines | 347 code | 48 blank | 9 comment | 28 complexity | b12b0b055f9258122fec723d5f25ee5e MD5 | raw file
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.208
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace Rawr.Server
  12. {
  13. using System.Data.Linq;
  14. using System.Data.Linq.Mapping;
  15. using System.Data;
  16. using System.Collections.Generic;
  17. using System.Reflection;
  18. using System.Linq;
  19. using System.Linq.Expressions;
  20. using System.ComponentModel;
  21. using System;
  22. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Rawr")]
  23. public partial class RawrDBDataContext : System.Data.Linq.DataContext
  24. {
  25. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  26. #region Extensibility Method Definitions
  27. partial void OnCreated();
  28. partial void InsertCharacterXML(CharacterXML instance);
  29. partial void UpdateCharacterXML(CharacterXML instance);
  30. partial void DeleteCharacterXML(CharacterXML instance);
  31. partial void InsertServerCharacterXML(ServerCharacterXML instance);
  32. partial void UpdateServerCharacterXML(ServerCharacterXML instance);
  33. partial void DeleteServerCharacterXML(ServerCharacterXML instance);
  34. #endregion
  35. public RawrDBDataContext() :
  36. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["RawrConnectionString"].ConnectionString, mappingSource)
  37. {
  38. OnCreated();
  39. }
  40. public RawrDBDataContext(string connection) :
  41. base(connection, mappingSource)
  42. {
  43. OnCreated();
  44. }
  45. public RawrDBDataContext(System.Data.IDbConnection connection) :
  46. base(connection, mappingSource)
  47. {
  48. OnCreated();
  49. }
  50. public RawrDBDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  51. base(connection, mappingSource)
  52. {
  53. OnCreated();
  54. }
  55. public RawrDBDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  56. base(connection, mappingSource)
  57. {
  58. OnCreated();
  59. }
  60. public System.Data.Linq.Table<CharacterXML> CharacterXMLs
  61. {
  62. get
  63. {
  64. return this.GetTable<CharacterXML>();
  65. }
  66. }
  67. public System.Data.Linq.Table<ServerCharacterXML> ServerCharacterXMLs
  68. {
  69. get
  70. {
  71. return this.GetTable<ServerCharacterXML>();
  72. }
  73. }
  74. }
  75. [global::System.Data.Linq.Mapping.TableAttribute(Name="rawrserver.CharacterXML")]
  76. public partial class CharacterXML : INotifyPropertyChanging, INotifyPropertyChanged
  77. {
  78. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  79. private string _CharacterName;
  80. private string _Realm;
  81. private string _Region;
  82. private System.DateTime _LastRefreshed;
  83. private string _XML;
  84. private string _CurrentModel;
  85. #region Extensibility Method Definitions
  86. partial void OnLoaded();
  87. partial void OnValidate(System.Data.Linq.ChangeAction action);
  88. partial void OnCreated();
  89. partial void OnCharacterNameChanging(string value);
  90. partial void OnCharacterNameChanged();
  91. partial void OnRealmChanging(string value);
  92. partial void OnRealmChanged();
  93. partial void OnRegionChanging(string value);
  94. partial void OnRegionChanged();
  95. partial void OnLastRefreshedChanging(System.DateTime value);
  96. partial void OnLastRefreshedChanged();
  97. partial void OnXMLChanging(string value);
  98. partial void OnXMLChanged();
  99. partial void OnCurrentModelChanging(string value);
  100. partial void OnCurrentModelChanged();
  101. #endregion
  102. public CharacterXML()
  103. {
  104. OnCreated();
  105. }
  106. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CharacterName", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
  107. public string CharacterName
  108. {
  109. get
  110. {
  111. return this._CharacterName;
  112. }
  113. set
  114. {
  115. if ((this._CharacterName != value))
  116. {
  117. this.OnCharacterNameChanging(value);
  118. this.SendPropertyChanging();
  119. this._CharacterName = value;
  120. this.SendPropertyChanged("CharacterName");
  121. this.OnCharacterNameChanged();
  122. }
  123. }
  124. }
  125. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Realm", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
  126. public string Realm
  127. {
  128. get
  129. {
  130. return this._Realm;
  131. }
  132. set
  133. {
  134. if ((this._Realm != value))
  135. {
  136. this.OnRealmChanging(value);
  137. this.SendPropertyChanging();
  138. this._Realm = value;
  139. this.SendPropertyChanged("Realm");
  140. this.OnRealmChanged();
  141. }
  142. }
  143. }
  144. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Region", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
  145. public string Region
  146. {
  147. get
  148. {
  149. return this._Region;
  150. }
  151. set
  152. {
  153. if ((this._Region != value))
  154. {
  155. this.OnRegionChanging(value);
  156. this.SendPropertyChanging();
  157. this._Region = value;
  158. this.SendPropertyChanged("Region");
  159. this.OnRegionChanged();
  160. }
  161. }
  162. }
  163. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastRefreshed", DbType="DateTime NOT NULL")]
  164. public System.DateTime LastRefreshed
  165. {
  166. get
  167. {
  168. return this._LastRefreshed;
  169. }
  170. set
  171. {
  172. if ((this._LastRefreshed != value))
  173. {
  174. this.OnLastRefreshedChanging(value);
  175. this.SendPropertyChanging();
  176. this._LastRefreshed = value;
  177. this.SendPropertyChanged("LastRefreshed");
  178. this.OnLastRefreshedChanged();
  179. }
  180. }
  181. }
  182. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_XML", DbType="NText NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
  183. public string XML
  184. {
  185. get
  186. {
  187. return this._XML;
  188. }
  189. set
  190. {
  191. if ((this._XML != value))
  192. {
  193. this.OnXMLChanging(value);
  194. this.SendPropertyChanging();
  195. this._XML = value;
  196. this.SendPropertyChanged("XML");
  197. this.OnXMLChanged();
  198. }
  199. }
  200. }
  201. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CurrentModel", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
  202. public string CurrentModel
  203. {
  204. get
  205. {
  206. return this._CurrentModel;
  207. }
  208. set
  209. {
  210. if ((this._CurrentModel != value))
  211. {
  212. this.OnCurrentModelChanging(value);
  213. this.SendPropertyChanging();
  214. this._CurrentModel = value;
  215. this.SendPropertyChanged("CurrentModel");
  216. this.OnCurrentModelChanged();
  217. }
  218. }
  219. }
  220. public event PropertyChangingEventHandler PropertyChanging;
  221. public event PropertyChangedEventHandler PropertyChanged;
  222. protected virtual void SendPropertyChanging()
  223. {
  224. if ((this.PropertyChanging != null))
  225. {
  226. this.PropertyChanging(this, emptyChangingEventArgs);
  227. }
  228. }
  229. protected virtual void SendPropertyChanged(String propertyName)
  230. {
  231. if ((this.PropertyChanged != null))
  232. {
  233. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  234. }
  235. }
  236. }
  237. [global::System.Data.Linq.Mapping.TableAttribute(Name="rawrserver.ServerCharacterXML")]
  238. public partial class ServerCharacterXML : INotifyPropertyChanging, INotifyPropertyChanged
  239. {
  240. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  241. private string _CharacterName;
  242. private string _SavePassword;
  243. private string _XML;
  244. private System.DateTime _LastModified;
  245. #region Extensibility Method Definitions
  246. partial void OnLoaded();
  247. partial void OnValidate(System.Data.Linq.ChangeAction action);
  248. partial void OnCreated();
  249. partial void OnCharacterNameChanging(string value);
  250. partial void OnCharacterNameChanged();
  251. partial void OnSavePasswordChanging(string value);
  252. partial void OnSavePasswordChanged();
  253. partial void OnXMLChanging(string value);
  254. partial void OnXMLChanged();
  255. partial void OnLastModifiedChanging(System.DateTime value);
  256. partial void OnLastModifiedChanged();
  257. #endregion
  258. public ServerCharacterXML()
  259. {
  260. OnCreated();
  261. }
  262. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CharacterName", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
  263. public string CharacterName
  264. {
  265. get
  266. {
  267. return this._CharacterName;
  268. }
  269. set
  270. {
  271. if ((this._CharacterName != value))
  272. {
  273. this.OnCharacterNameChanging(value);
  274. this.SendPropertyChanging();
  275. this._CharacterName = value;
  276. this.SendPropertyChanged("CharacterName");
  277. this.OnCharacterNameChanged();
  278. }
  279. }
  280. }
  281. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SavePassword", DbType="NVarChar(50)")]
  282. public string SavePassword
  283. {
  284. get
  285. {
  286. return this._SavePassword;
  287. }
  288. set
  289. {
  290. if ((this._SavePassword != value))
  291. {
  292. this.OnSavePasswordChanging(value);
  293. this.SendPropertyChanging();
  294. this._SavePassword = value;
  295. this.SendPropertyChanged("SavePassword");
  296. this.OnSavePasswordChanged();
  297. }
  298. }
  299. }
  300. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_XML", DbType="NText NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
  301. public string XML
  302. {
  303. get
  304. {
  305. return this._XML;
  306. }
  307. set
  308. {
  309. if ((this._XML != value))
  310. {
  311. this.OnXMLChanging(value);
  312. this.SendPropertyChanging();
  313. this._XML = value;
  314. this.SendPropertyChanged("XML");
  315. this.OnXMLChanged();
  316. }
  317. }
  318. }
  319. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModified", DbType="DateTime NOT NULL")]
  320. public System.DateTime LastModified
  321. {
  322. get
  323. {
  324. return this._LastModified;
  325. }
  326. set
  327. {
  328. if ((this._LastModified != value))
  329. {
  330. this.OnLastModifiedChanging(value);
  331. this.SendPropertyChanging();
  332. this._LastModified = value;
  333. this.SendPropertyChanged("LastModified");
  334. this.OnLastModifiedChanged();
  335. }
  336. }
  337. }
  338. public event PropertyChangingEventHandler PropertyChanging;
  339. public event PropertyChangedEventHandler PropertyChanged;
  340. protected virtual void SendPropertyChanging()
  341. {
  342. if ((this.PropertyChanging != null))
  343. {
  344. this.PropertyChanging(this, emptyChangingEventArgs);
  345. }
  346. }
  347. protected virtual void SendPropertyChanged(String propertyName)
  348. {
  349. if ((this.PropertyChanged != null))
  350. {
  351. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  352. }
  353. }
  354. }
  355. }
  356. #pragma warning restore 1591