[4583] | 1 | #pragma warning disable 1591
|
---|
| 2 | //------------------------------------------------------------------------------
|
---|
| 3 | // <auto-generated>
|
---|
| 4 | // This code was generated by a tool.
|
---|
| 5 | // Runtime Version:4.0.30319.1
|
---|
| 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 |
|
---|
| 12 | namespace HeuristicLab.Services.Authentication.DataAccess
|
---|
| 13 | {
|
---|
| 14 | using System.Data.Linq;
|
---|
| 15 | using System.Data.Linq.Mapping;
|
---|
| 16 | using System.Data;
|
---|
| 17 | using System.Collections.Generic;
|
---|
| 18 | using System.Reflection;
|
---|
| 19 | using System.Linq;
|
---|
| 20 | using System.Linq.Expressions;
|
---|
| 21 | using System.ComponentModel;
|
---|
| 22 | using System;
|
---|
| 23 |
|
---|
| 24 |
|
---|
[4953] | 25 | [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.ClientManagment")]
|
---|
[4583] | 26 | public partial class ClientManagmentDataContext : System.Data.Linq.DataContext
|
---|
| 27 | {
|
---|
| 28 |
|
---|
| 29 | private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
|
---|
| 30 |
|
---|
| 31 | #region Extensibility Method Definitions
|
---|
| 32 | partial void OnCreated();
|
---|
| 33 | partial void InsertResource(Resource instance);
|
---|
| 34 | partial void UpdateResource(Resource instance);
|
---|
| 35 | partial void DeleteResource(Resource instance);
|
---|
| 36 | partial void InsertResourceResourceGroup(ResourceResourceGroup instance);
|
---|
| 37 | partial void UpdateResourceResourceGroup(ResourceResourceGroup instance);
|
---|
| 38 | partial void DeleteResourceResourceGroup(ResourceResourceGroup instance);
|
---|
| 39 | #endregion
|
---|
[4732] | 40 |
|
---|
[4802] | 41 | public ClientManagmentDataContext() :
|
---|
| 42 | base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource)
|
---|
| 43 | {
|
---|
| 44 | OnCreated();
|
---|
| 45 | }
|
---|
| 46 |
|
---|
[4583] | 47 | public ClientManagmentDataContext(string connection) :
|
---|
| 48 | base(connection, mappingSource)
|
---|
| 49 | {
|
---|
| 50 | OnCreated();
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | public ClientManagmentDataContext(System.Data.IDbConnection connection) :
|
---|
| 54 | base(connection, mappingSource)
|
---|
| 55 | {
|
---|
| 56 | OnCreated();
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | public ClientManagmentDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
| 60 | base(connection, mappingSource)
|
---|
| 61 | {
|
---|
| 62 | OnCreated();
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | public ClientManagmentDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
| 66 | base(connection, mappingSource)
|
---|
| 67 | {
|
---|
| 68 | OnCreated();
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | public System.Data.Linq.Table<Resource> Resources
|
---|
| 72 | {
|
---|
| 73 | get
|
---|
| 74 | {
|
---|
| 75 | return this.GetTable<Resource>();
|
---|
| 76 | }
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 | public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
|
---|
| 80 | {
|
---|
| 81 | get
|
---|
| 82 | {
|
---|
| 83 | return this.GetTable<ResourceResourceGroup>();
|
---|
| 84 | }
|
---|
| 85 | }
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
|
---|
[4732] | 89 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))]
|
---|
[4583] | 90 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
|
---|
[4732] | 91 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="ResourceGroup", Type=typeof(ResourceGroup), IsDefault=true)]
|
---|
[4583] | 92 | public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
| 93 | {
|
---|
| 94 |
|
---|
| 95 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
| 96 |
|
---|
| 97 | private System.Guid _ResourceID;
|
---|
| 98 |
|
---|
| 99 | private string _Name;
|
---|
| 100 |
|
---|
| 101 | private string _Description;
|
---|
| 102 |
|
---|
| 103 | private string _ResourceType;
|
---|
| 104 |
|
---|
| 105 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
|
---|
| 106 |
|
---|
| 107 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
|
---|
| 108 |
|
---|
| 109 | #region Extensibility Method Definitions
|
---|
| 110 | partial void OnLoaded();
|
---|
| 111 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
| 112 | partial void OnCreated();
|
---|
[4732] | 113 | partial void OnIdChanging(System.Guid value);
|
---|
| 114 | partial void OnIdChanged();
|
---|
[4583] | 115 | partial void OnNameChanging(string value);
|
---|
| 116 | partial void OnNameChanged();
|
---|
| 117 | partial void OnDescriptionChanging(string value);
|
---|
| 118 | partial void OnDescriptionChanged();
|
---|
| 119 | partial void OnResourceTypeChanging(string value);
|
---|
| 120 | partial void OnResourceTypeChanged();
|
---|
| 121 | #endregion
|
---|
| 122 |
|
---|
| 123 | public Resource()
|
---|
| 124 | {
|
---|
| 125 | this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
|
---|
| 126 | this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
|
---|
| 127 | OnCreated();
|
---|
| 128 | }
|
---|
| 129 |
|
---|
[4953] | 130 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)]
|
---|
[4732] | 131 | public System.Guid Id
|
---|
[4583] | 132 | {
|
---|
| 133 | get
|
---|
| 134 | {
|
---|
| 135 | return this._ResourceID;
|
---|
| 136 | }
|
---|
| 137 | set
|
---|
| 138 | {
|
---|
| 139 | if ((this._ResourceID != value))
|
---|
| 140 | {
|
---|
[4732] | 141 | this.OnIdChanging(value);
|
---|
[4583] | 142 | this.SendPropertyChanging();
|
---|
| 143 | this._ResourceID = value;
|
---|
[4732] | 144 | this.SendPropertyChanged("Id");
|
---|
| 145 | this.OnIdChanged();
|
---|
[4583] | 146 | }
|
---|
| 147 | }
|
---|
| 148 | }
|
---|
| 149 |
|
---|
| 150 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", CanBeNull=false)]
|
---|
| 151 | public string Name
|
---|
| 152 | {
|
---|
| 153 | get
|
---|
| 154 | {
|
---|
| 155 | return this._Name;
|
---|
| 156 | }
|
---|
| 157 | set
|
---|
| 158 | {
|
---|
| 159 | if ((this._Name != value))
|
---|
| 160 | {
|
---|
| 161 | this.OnNameChanging(value);
|
---|
| 162 | this.SendPropertyChanging();
|
---|
| 163 | this._Name = value;
|
---|
| 164 | this.SendPropertyChanged("Name");
|
---|
| 165 | this.OnNameChanged();
|
---|
| 166 | }
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description")]
|
---|
| 171 | public string Description
|
---|
| 172 | {
|
---|
| 173 | get
|
---|
| 174 | {
|
---|
| 175 | return this._Description;
|
---|
| 176 | }
|
---|
| 177 | set
|
---|
| 178 | {
|
---|
| 179 | if ((this._Description != value))
|
---|
| 180 | {
|
---|
| 181 | this.OnDescriptionChanging(value);
|
---|
| 182 | this.SendPropertyChanging();
|
---|
| 183 | this._Description = value;
|
---|
| 184 | this.SendPropertyChanged("Description");
|
---|
| 185 | this.OnDescriptionChanged();
|
---|
| 186 | }
|
---|
| 187 | }
|
---|
| 188 | }
|
---|
| 189 |
|
---|
| 190 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceType", CanBeNull=false, IsDiscriminator=true)]
|
---|
| 191 | public string ResourceType
|
---|
| 192 | {
|
---|
| 193 | get
|
---|
| 194 | {
|
---|
| 195 | return this._ResourceType;
|
---|
| 196 | }
|
---|
| 197 | set
|
---|
| 198 | {
|
---|
| 199 | if ((this._ResourceType != value))
|
---|
| 200 | {
|
---|
| 201 | this.OnResourceTypeChanging(value);
|
---|
| 202 | this.SendPropertyChanging();
|
---|
| 203 | this._ResourceType = value;
|
---|
| 204 | this.SendPropertyChanged("ResourceType");
|
---|
| 205 | this.OnResourceTypeChanged();
|
---|
| 206 | }
|
---|
| 207 | }
|
---|
| 208 | }
|
---|
| 209 |
|
---|
[4732] | 210 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceId")]
|
---|
[4583] | 211 | public EntitySet<ResourceResourceGroup> Clients
|
---|
| 212 | {
|
---|
| 213 | get
|
---|
| 214 | {
|
---|
| 215 | return this._ResourceResourceGroups;
|
---|
| 216 | }
|
---|
| 217 | set
|
---|
| 218 | {
|
---|
| 219 | this._ResourceResourceGroups.Assign(value);
|
---|
| 220 | }
|
---|
| 221 | }
|
---|
| 222 |
|
---|
[4732] | 223 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceGroupId")]
|
---|
[4583] | 224 | public EntitySet<ResourceResourceGroup> ResourceGroups
|
---|
| 225 | {
|
---|
| 226 | get
|
---|
| 227 | {
|
---|
| 228 | return this._ResourceResourceGroups1;
|
---|
| 229 | }
|
---|
| 230 | set
|
---|
| 231 | {
|
---|
| 232 | this._ResourceResourceGroups1.Assign(value);
|
---|
| 233 | }
|
---|
| 234 | }
|
---|
| 235 |
|
---|
| 236 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
| 237 |
|
---|
| 238 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
| 239 |
|
---|
| 240 | protected virtual void SendPropertyChanging()
|
---|
| 241 | {
|
---|
| 242 | if ((this.PropertyChanging != null))
|
---|
| 243 | {
|
---|
| 244 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
| 247 |
|
---|
| 248 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
| 249 | {
|
---|
| 250 | if ((this.PropertyChanged != null))
|
---|
| 251 | {
|
---|
| 252 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
| 253 | }
|
---|
| 254 | }
|
---|
| 255 |
|
---|
| 256 | private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
| 257 | {
|
---|
| 258 | this.SendPropertyChanging();
|
---|
| 259 | entity.Client = this;
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
| 263 | {
|
---|
| 264 | this.SendPropertyChanging();
|
---|
| 265 | entity.Client = null;
|
---|
| 266 | }
|
---|
| 267 |
|
---|
| 268 | private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
| 269 | {
|
---|
| 270 | this.SendPropertyChanging();
|
---|
| 271 | entity.ResourceGroup = this;
|
---|
| 272 | }
|
---|
| 273 |
|
---|
| 274 | private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
| 275 | {
|
---|
| 276 | this.SendPropertyChanging();
|
---|
| 277 | entity.ResourceGroup = null;
|
---|
| 278 | }
|
---|
| 279 | }
|
---|
| 280 |
|
---|
| 281 | public partial class Client : Resource
|
---|
| 282 | {
|
---|
| 283 |
|
---|
| 284 | private string _ProcessorType;
|
---|
| 285 |
|
---|
[4694] | 286 | private string _NumberOfProcessors;
|
---|
[4583] | 287 |
|
---|
[4694] | 288 | private string _NumberOfThreads;
|
---|
[4583] | 289 |
|
---|
[4694] | 290 | private string _IPAdress;
|
---|
[4583] | 291 |
|
---|
[4694] | 292 | private string _MemorySize;
|
---|
[4583] | 293 |
|
---|
| 294 | private string _OperatingSystem;
|
---|
| 295 |
|
---|
| 296 | #region Extensibility Method Definitions
|
---|
| 297 | partial void OnLoaded();
|
---|
| 298 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
| 299 | partial void OnCreated();
|
---|
| 300 | partial void OnProcessorTypeChanging(string value);
|
---|
| 301 | partial void OnProcessorTypeChanged();
|
---|
[4694] | 302 | partial void OnNumberOfProcessorsChanging(string value);
|
---|
[4583] | 303 | partial void OnNumberOfProcessorsChanged();
|
---|
[4694] | 304 | partial void OnNumberOfThreadsChanging(string value);
|
---|
[4583] | 305 | partial void OnNumberOfThreadsChanged();
|
---|
[4694] | 306 | partial void OnIPAdressChanging(string value);
|
---|
| 307 | partial void OnIPAdressChanged();
|
---|
| 308 | partial void OnMemorySizeChanging(string value);
|
---|
[4583] | 309 | partial void OnMemorySizeChanged();
|
---|
| 310 | partial void OnOperatingSystemChanging(string value);
|
---|
| 311 | partial void OnOperatingSystemChanged();
|
---|
| 312 | #endregion
|
---|
| 313 |
|
---|
| 314 | public Client()
|
---|
| 315 | {
|
---|
| 316 | OnCreated();
|
---|
| 317 | }
|
---|
| 318 |
|
---|
| 319 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType")]
|
---|
| 320 | public string ProcessorType
|
---|
| 321 | {
|
---|
| 322 | get
|
---|
| 323 | {
|
---|
| 324 | return this._ProcessorType;
|
---|
| 325 | }
|
---|
| 326 | set
|
---|
| 327 | {
|
---|
| 328 | if ((this._ProcessorType != value))
|
---|
| 329 | {
|
---|
| 330 | this.OnProcessorTypeChanging(value);
|
---|
| 331 | this.SendPropertyChanging();
|
---|
| 332 | this._ProcessorType = value;
|
---|
| 333 | this.SendPropertyChanged("ProcessorType");
|
---|
| 334 | this.OnProcessorTypeChanged();
|
---|
| 335 | }
|
---|
| 336 | }
|
---|
| 337 | }
|
---|
| 338 |
|
---|
[4694] | 339 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors")]
|
---|
| 340 | public string NumberOfProcessors
|
---|
[4583] | 341 | {
|
---|
| 342 | get
|
---|
| 343 | {
|
---|
| 344 | return this._NumberOfProcessors;
|
---|
| 345 | }
|
---|
| 346 | set
|
---|
| 347 | {
|
---|
| 348 | if ((this._NumberOfProcessors != value))
|
---|
| 349 | {
|
---|
| 350 | this.OnNumberOfProcessorsChanging(value);
|
---|
| 351 | this.SendPropertyChanging();
|
---|
| 352 | this._NumberOfProcessors = value;
|
---|
| 353 | this.SendPropertyChanged("NumberOfProcessors");
|
---|
| 354 | this.OnNumberOfProcessorsChanged();
|
---|
| 355 | }
|
---|
| 356 | }
|
---|
| 357 | }
|
---|
| 358 |
|
---|
| 359 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfThreads")]
|
---|
[4694] | 360 | public string NumberOfThreads
|
---|
[4583] | 361 | {
|
---|
| 362 | get
|
---|
| 363 | {
|
---|
| 364 | return this._NumberOfThreads;
|
---|
| 365 | }
|
---|
| 366 | set
|
---|
| 367 | {
|
---|
| 368 | if ((this._NumberOfThreads != value))
|
---|
| 369 | {
|
---|
| 370 | this.OnNumberOfThreadsChanging(value);
|
---|
| 371 | this.SendPropertyChanging();
|
---|
| 372 | this._NumberOfThreads = value;
|
---|
| 373 | this.SendPropertyChanged("NumberOfThreads");
|
---|
| 374 | this.OnNumberOfThreadsChanged();
|
---|
| 375 | }
|
---|
| 376 | }
|
---|
| 377 | }
|
---|
| 378 |
|
---|
[4694] | 379 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdress")]
|
---|
| 380 | public string IPAdress
|
---|
[4583] | 381 | {
|
---|
| 382 | get
|
---|
| 383 | {
|
---|
[4694] | 384 | return this._IPAdress;
|
---|
[4583] | 385 | }
|
---|
| 386 | set
|
---|
| 387 | {
|
---|
[4694] | 388 | if ((this._IPAdress != value))
|
---|
[4583] | 389 | {
|
---|
[4694] | 390 | this.OnIPAdressChanging(value);
|
---|
[4583] | 391 | this.SendPropertyChanging();
|
---|
[4694] | 392 | this._IPAdress = value;
|
---|
| 393 | this.SendPropertyChanged("IPAdress");
|
---|
| 394 | this.OnIPAdressChanged();
|
---|
[4583] | 395 | }
|
---|
| 396 | }
|
---|
| 397 | }
|
---|
| 398 |
|
---|
| 399 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize")]
|
---|
[4694] | 400 | public string MemorySize
|
---|
[4583] | 401 | {
|
---|
| 402 | get
|
---|
| 403 | {
|
---|
| 404 | return this._MemorySize;
|
---|
| 405 | }
|
---|
| 406 | set
|
---|
| 407 | {
|
---|
| 408 | if ((this._MemorySize != value))
|
---|
| 409 | {
|
---|
| 410 | this.OnMemorySizeChanging(value);
|
---|
| 411 | this.SendPropertyChanging();
|
---|
| 412 | this._MemorySize = value;
|
---|
| 413 | this.SendPropertyChanged("MemorySize");
|
---|
| 414 | this.OnMemorySizeChanged();
|
---|
| 415 | }
|
---|
| 416 | }
|
---|
| 417 | }
|
---|
| 418 |
|
---|
| 419 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem")]
|
---|
| 420 | public string OperatingSystem
|
---|
| 421 | {
|
---|
| 422 | get
|
---|
| 423 | {
|
---|
| 424 | return this._OperatingSystem;
|
---|
| 425 | }
|
---|
| 426 | set
|
---|
| 427 | {
|
---|
| 428 | if ((this._OperatingSystem != value))
|
---|
| 429 | {
|
---|
| 430 | this.OnOperatingSystemChanging(value);
|
---|
| 431 | this.SendPropertyChanging();
|
---|
| 432 | this._OperatingSystem = value;
|
---|
| 433 | this.SendPropertyChanged("OperatingSystem");
|
---|
| 434 | this.OnOperatingSystemChanged();
|
---|
| 435 | }
|
---|
| 436 | }
|
---|
| 437 | }
|
---|
| 438 | }
|
---|
| 439 |
|
---|
| 440 | public partial class ResourceGroup : Resource
|
---|
| 441 | {
|
---|
| 442 |
|
---|
| 443 | #region Extensibility Method Definitions
|
---|
| 444 | partial void OnLoaded();
|
---|
| 445 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
| 446 | partial void OnCreated();
|
---|
| 447 | #endregion
|
---|
| 448 |
|
---|
| 449 | public ResourceGroup()
|
---|
| 450 | {
|
---|
| 451 | OnCreated();
|
---|
| 452 | }
|
---|
| 453 | }
|
---|
| 454 |
|
---|
| 455 | [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
|
---|
| 456 | public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
| 457 | {
|
---|
| 458 |
|
---|
| 459 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
| 460 |
|
---|
| 461 | private System.Guid _ResourceID;
|
---|
| 462 |
|
---|
| 463 | private System.Guid _ResourceGroupID;
|
---|
| 464 |
|
---|
| 465 | private EntityRef<Resource> _Resource;
|
---|
| 466 |
|
---|
| 467 | private EntityRef<Resource> _Resource1;
|
---|
| 468 |
|
---|
| 469 | #region Extensibility Method Definitions
|
---|
| 470 | partial void OnLoaded();
|
---|
| 471 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
| 472 | partial void OnCreated();
|
---|
[4732] | 473 | partial void OnResourceIdChanging(System.Guid value);
|
---|
| 474 | partial void OnResourceIdChanged();
|
---|
| 475 | partial void OnResourceGroupIdChanging(System.Guid value);
|
---|
| 476 | partial void OnResourceGroupIdChanged();
|
---|
[4583] | 477 | #endregion
|
---|
| 478 |
|
---|
| 479 | public ResourceResourceGroup()
|
---|
| 480 | {
|
---|
| 481 | this._Resource = default(EntityRef<Resource>);
|
---|
| 482 | this._Resource1 = default(EntityRef<Resource>);
|
---|
| 483 | OnCreated();
|
---|
| 484 | }
|
---|
| 485 |
|
---|
[4953] | 486 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", IsPrimaryKey=true)]
|
---|
[4732] | 487 | public System.Guid ResourceId
|
---|
[4583] | 488 | {
|
---|
| 489 | get
|
---|
| 490 | {
|
---|
| 491 | return this._ResourceID;
|
---|
| 492 | }
|
---|
| 493 | set
|
---|
| 494 | {
|
---|
| 495 | if ((this._ResourceID != value))
|
---|
| 496 | {
|
---|
[4953] | 497 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
| 498 | {
|
---|
| 499 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
| 500 | }
|
---|
[4732] | 501 | this.OnResourceIdChanging(value);
|
---|
[4583] | 502 | this.SendPropertyChanging();
|
---|
| 503 | this._ResourceID = value;
|
---|
[4732] | 504 | this.SendPropertyChanged("ResourceId");
|
---|
| 505 | this.OnResourceIdChanged();
|
---|
[4583] | 506 | }
|
---|
| 507 | }
|
---|
| 508 | }
|
---|
| 509 |
|
---|
[4953] | 510 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupID", IsPrimaryKey=true)]
|
---|
[4732] | 511 | public System.Guid ResourceGroupId
|
---|
[4583] | 512 | {
|
---|
| 513 | get
|
---|
| 514 | {
|
---|
| 515 | return this._ResourceGroupID;
|
---|
| 516 | }
|
---|
| 517 | set
|
---|
| 518 | {
|
---|
| 519 | if ((this._ResourceGroupID != value))
|
---|
| 520 | {
|
---|
[4953] | 521 | if (this._Resource1.HasLoadedOrAssignedValue)
|
---|
| 522 | {
|
---|
| 523 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
| 524 | }
|
---|
[4732] | 525 | this.OnResourceGroupIdChanging(value);
|
---|
[4583] | 526 | this.SendPropertyChanging();
|
---|
| 527 | this._ResourceGroupID = value;
|
---|
[4732] | 528 | this.SendPropertyChanged("ResourceGroupId");
|
---|
| 529 | this.OnResourceGroupIdChanged();
|
---|
[4583] | 530 | }
|
---|
| 531 | }
|
---|
| 532 | }
|
---|
| 533 |
|
---|
[4732] | 534 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
|
---|
[4583] | 535 | public Resource Client
|
---|
| 536 | {
|
---|
| 537 | get
|
---|
| 538 | {
|
---|
| 539 | return this._Resource.Entity;
|
---|
| 540 | }
|
---|
| 541 | set
|
---|
| 542 | {
|
---|
| 543 | Resource previousValue = this._Resource.Entity;
|
---|
| 544 | if (((previousValue != value)
|
---|
| 545 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
| 546 | {
|
---|
| 547 | this.SendPropertyChanging();
|
---|
| 548 | if ((previousValue != null))
|
---|
| 549 | {
|
---|
| 550 | this._Resource.Entity = null;
|
---|
| 551 | previousValue.Clients.Remove(this);
|
---|
| 552 | }
|
---|
| 553 | this._Resource.Entity = value;
|
---|
| 554 | if ((value != null))
|
---|
| 555 | {
|
---|
| 556 | value.Clients.Add(this);
|
---|
[4732] | 557 | this._ResourceID = value.Id;
|
---|
[4583] | 558 | }
|
---|
| 559 | else
|
---|
| 560 | {
|
---|
| 561 | this._ResourceID = default(System.Guid);
|
---|
| 562 | }
|
---|
| 563 | this.SendPropertyChanged("Client");
|
---|
| 564 | }
|
---|
| 565 | }
|
---|
| 566 | }
|
---|
| 567 |
|
---|
[4732] | 568 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)]
|
---|
[4583] | 569 | public Resource ResourceGroup
|
---|
| 570 | {
|
---|
| 571 | get
|
---|
| 572 | {
|
---|
| 573 | return this._Resource1.Entity;
|
---|
| 574 | }
|
---|
| 575 | set
|
---|
| 576 | {
|
---|
| 577 | Resource previousValue = this._Resource1.Entity;
|
---|
| 578 | if (((previousValue != value)
|
---|
| 579 | || (this._Resource1.HasLoadedOrAssignedValue == false)))
|
---|
| 580 | {
|
---|
| 581 | this.SendPropertyChanging();
|
---|
| 582 | if ((previousValue != null))
|
---|
| 583 | {
|
---|
| 584 | this._Resource1.Entity = null;
|
---|
| 585 | previousValue.ResourceGroups.Remove(this);
|
---|
| 586 | }
|
---|
| 587 | this._Resource1.Entity = value;
|
---|
| 588 | if ((value != null))
|
---|
| 589 | {
|
---|
| 590 | value.ResourceGroups.Add(this);
|
---|
[4732] | 591 | this._ResourceGroupID = value.Id;
|
---|
[4583] | 592 | }
|
---|
| 593 | else
|
---|
| 594 | {
|
---|
| 595 | this._ResourceGroupID = default(System.Guid);
|
---|
| 596 | }
|
---|
| 597 | this.SendPropertyChanged("ResourceGroup");
|
---|
| 598 | }
|
---|
| 599 | }
|
---|
| 600 | }
|
---|
| 601 |
|
---|
| 602 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
| 603 |
|
---|
| 604 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
| 605 |
|
---|
| 606 | protected virtual void SendPropertyChanging()
|
---|
| 607 | {
|
---|
| 608 | if ((this.PropertyChanging != null))
|
---|
| 609 | {
|
---|
| 610 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
| 611 | }
|
---|
| 612 | }
|
---|
| 613 |
|
---|
| 614 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
| 615 | {
|
---|
| 616 | if ((this.PropertyChanged != null))
|
---|
| 617 | {
|
---|
| 618 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
| 619 | }
|
---|
| 620 | }
|
---|
| 621 | }
|
---|
| 622 | }
|
---|
| 623 | #pragma warning restore 1591
|
---|