I have problem with LINQ. I have created SQL Server 2005 database Database.mdf in App_Data folder with two tables - Pages and PagesGroups. Table Pages consist of fields PageID, AspxForm, DescriptionEN, DescriptionPL, PagesGroupID, NavNameEN, NavNamePL, PageActive, NavToolTipEN, NavToolTipPL and table PagesGroups consist of PagesGroupID, NavGroupNameEN, NavGroupNamePL, NavGroupToolTipEN, NavGroupToolTipPL, GroupDescriptionPL, GroupDescriptionEN, GroupActive. I added example rows. I created DataClasses.dbml, where Pages is child of PagesGroups. DataClasses.designer.cs was generated automatically by Visual Web Developer program. I started writing LINQ commands in master page (DataClassesDataContext db = new DataClassesDataContext(); var pages = from p in db.Pages select new { Description = p.PagesGroup.GroupDescriptionPL };). Automatically generated DataClasses.designer.cs causes error Invalid token 'void' in class, struct, or interface member declaration. Should I something change in it. I pasted code below because I must delete DataClasses.designer.cs from site since it causes error on all my Web site.
Should I something change (in DataClasses.designer.cs)? Could you help me?
Error message with code:
Server Error in '/' Application.
--------------------------------------------------------------------------------Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS1519: Invalid token 'void' in class, struct, or interface member declaration
Source Error:
Line 29:
Line 30: #region Extensibility Method Definitions
Line 31: partial void OnCreated();
Line 32: partial void InsertPage(Page instance);
Line 33: partial void UpdatePage(Page instance);
Source File: f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs Line: 31Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\45d5769d\b4c85892\App_GlobalResources.g6ljjte0.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\45d5769d\b4c85892\App_Code.dh-yu9ud.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\45d5769d\b4c85892\App_Code.dh-yu9ud.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\45d5769d\b4c85892\App_Code.dh-yu9ud.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\45d5769d\b4c85892\App_Code.dh-yu9ud.2.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(31,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(32,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(33,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(34,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(35,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(36,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(37,11): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(116,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(117,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(118,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(119,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(120,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(121,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(122,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(123,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(124,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(125,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(126,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(127,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(128,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(129,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(130,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(131,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(132,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(133,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(134,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(135,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(136,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(137,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(138,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(431,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(432,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(433,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(434,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(435,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(436,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(437,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(438,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(439,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(440,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(441,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(442,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(443,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(444,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(445,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(446,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(447,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(448,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
f:\Users\szmitek.winweb.pl\wwwroot\App_Code\DataClasses.designer.cs(449,13): error CS1519: Invalid token 'void' in class, struct, or interface member declaration
Show Complete Compilation Source:Line 1: #pragma warning disable 1591
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:2.0.50727.1434
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: using System;
Line 13: using System.Collections.Generic;
Line 14: using System.ComponentModel;
Line 15: using System.Data;
Line 16: using System.Data.Linq;
Line 17: using System.Data.Linq.Mapping;
Line 18: using System.Linq;
Line 19: using System.Linq.Expressions;
Line 20: using System.Reflection;
Line 21:
Line 22:
Line 23:
Line 24: [System.Data.Linq.Mapping.DatabaseAttribute(Name="Database")]
Line 25: public partial class DataClassesDataContext : System.Data.Linq.DataContext
Line 26: {
Line 27:
Line 28: private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
Line 29:
Line 30: #region Extensibility Method Definitions
Line 31: partial void OnCreated();
Line 32: partial void InsertPage(Page instance);
Line 33: partial void UpdatePage(Page instance);
Line 34: partial void DeletePage(Page instance);
Line 35: partial void InsertPagesGroup(PagesGroup instance);
Line 36: partial void UpdatePagesGroup(PagesGroup instance);
Line 37: partial void DeletePagesGroup(PagesGroup instance);
Line 38: #endregion
Line 39:
Line 40: public DataClassesDataContext() :
Line 41: base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString, mappingSource)
Line 42: {
Line 43: OnCreated();
Line 44: }
Line 45:
Line 46: public DataClassesDataContext(string connection) :
Line 47: base(connection, mappingSource)
Line 48: {
Line 49: OnCreated();
Line 50: }
Line 51:
Line 52: public DataClassesDataContext(System.Data.IDbConnection connection) :
Line 53: base(connection, mappingSource)
Line 54: {
Line 55: OnCreated();
Line 56: }
Line 57:
Line 58: public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
Line 59: base(connection, mappingSource)
Line 60: {
Line 61: OnCreated();
Line 62: }
Line 63:
Line 64: public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
Line 65: base(connection, mappingSource)
Line 66: {
Line 67: OnCreated();
Line 68: }
Line 69:
Line 70: public System.Data.Linq.Table<Page> Pages
Line 71: {
Line 72: get
Line 73: {
Line 74: return this.GetTable<Page>();
Line 75: }
Line 76: }
Line 77:
Line 78: public System.Data.Linq.Table<PagesGroup> PagesGroups
Line 79: {
Line 80: get
Line 81: {
Line 82: return this.GetTable<PagesGroup>();
Line 83: }
Line 84: }
Line 85: }
Line 86:
Line 87: [Table(Name="dbo.Pages")]
Line 88: public partial class Page : INotifyPropertyChanging, INotifyPropertyChanged
Line 89: {
Line 90:
Line 91: private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
Line 92:
Line 93: private int _PageID;
Line 94:
Line 95: private string _AspxForm;
Line 96:
Line 97: private string _DescriptionEN;
Line 98:
Line 99: private string _DescriptionPL;
Line 100:
Line 101: private int _PagesGroupID;
Line 102:
Line 103: private string _NavNameEN;
Line 104:
Line 105: private string _NavNamePL;
Line 106:
Line 107: private bool _PageActive;
Line 108:
Line 109: private string _NavToolTipEN;
Line 110:
Line 111: private string _NavToolTipPL;
Line 112:
Line 113: private EntityRef<PagesGroup> _PagesGroup;
Line 114:
Line 115: #region Extensibility Method Definitions
Line 116: partial void OnLoaded();
Line 117: partial void OnValidate(System.Data.Linq.ChangeAction action);
Line 118: partial void OnCreated();
Line 119: partial void OnPageIDChanging(int value);
Line 120: partial void OnPageIDChanged();
Line 121: partial void OnAspxFormChanging(string value);
Line 122: partial void OnAspxFormChanged();
Line 123: partial void OnDescriptionENChanging(string value);
Line 124: partial void OnDescriptionENChanged();
Line 125: partial void OnDescriptionPLChanging(string value);
Line 126: partial void OnDescriptionPLChanged();
Line 127: partial void OnPagesGroupIDChanging(int value);
Line 128: partial void OnPagesGroupIDChanged();
Line 129: partial void OnNavNameENChanging(string value);
Line 130: partial void OnNavNameENChanged();
Line 131: partial void OnNavNamePLChanging(string value);
Line 132: partial void OnNavNamePLChanged();
Line 133: partial void OnPageActiveChanging(bool value);
Line 134: partial void OnPageActiveChanged();
Line 135: partial void OnNavToolTipENChanging(string value);
Line 136: partial void OnNavToolTipENChanged();
Line 137: partial void OnNavToolTipPLChanging(string value);
Line 138: partial void OnNavToolTipPLChanged();
Line 139: #endregion
Line 140:
Line 141: public Page()
Line 142: {
Line 143: this._PagesGroup = default(EntityRef<PagesGroup>);
Line 144: OnCreated();
Line 145: }
Line 146:
Line 147: [Column(Storage="_PageID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
Line 148: public int PageID
Line 149: {
Line 150: get
Line 151: {
Line 152: return this._PageID;
Line 153: }
Line 154: set
Line 155: {
Line 156: if ((this._PageID != value))
Line 157: {
Line 158: this.OnPageIDChanging(value);
Line 159: this.SendPropertyChanging();
Line 160: this._PageID = value;
Line 161: this.SendPropertyChanged("PageID");
Line 162: this.OnPageIDChanged();
Line 163: }
Line 164: }
Line 165: }
Line 166:
Line 167: [Column(Storage="_AspxForm", DbType="Char(10) NOT NULL", CanBeNull=false)]
Line 168: public string AspxForm
Line 169: {
Line 170: get
Line 171: {
Line 172: return this._AspxForm;
Line 173: }
Line 174: set
Line 175: {
Line 176: if ((this._AspxForm != value))
Line 177: {
Line 178: this.OnAspxFormChanging(value);
Line 179: this.SendPropertyChanging();
Line 180: this._AspxForm = value;
Line 181: this.SendPropertyChanged("AspxForm");
Line 182: this.OnAspxFormChanged();
Line 183: }
Line 184: }
Line 185: }
Line 186:
Line 187: [Column(Storage="_DescriptionEN", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 188: public string DescriptionEN
Line 189: {
Line 190: get
Line 191: {
Line 192: return this._DescriptionEN;
Line 193: }
Line 194: set
Line 195: {
Line 196: if ((this._DescriptionEN != value))
Line 197: {
Line 198: this.OnDescriptionENChanging(value);
Line 199: this.SendPropertyChanging();
Line 200: this._DescriptionEN = value;
Line 201: this.SendPropertyChanged("DescriptionEN");
Line 202: this.OnDescriptionENChanged();
Line 203: }
Line 204: }
Line 205: }
Line 206:
Line 207: [Column(Storage="_DescriptionPL", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 208: public string DescriptionPL
Line 209: {
Line 210: get
Line 211: {
Line 212: return this._DescriptionPL;
Line 213: }
Line 214: set
Line 215: {
Line 216: if ((this._DescriptionPL != value))
Line 217: {
Line 218: this.OnDescriptionPLChanging(value);
Line 219: this.SendPropertyChanging();
Line 220: this._DescriptionPL = value;
Line 221: this.SendPropertyChanged("DescriptionPL");
Line 222: this.OnDescriptionPLChanged();
Line 223: }
Line 224: }
Line 225: }
Line 226:
Line 227: [Column(Storage="_PagesGroupID", DbType="Int NOT NULL")]
Line 228: public int PagesGroupID
Line 229: {
Line 230: get
Line 231: {
Line 232: return this._PagesGroupID;
Line 233: }
Line 234: set
Line 235: {
Line 236: if ((this._PagesGroupID != value))
Line 237: {
Line 238: if (this._PagesGroup.HasLoadedOrAssignedValue)
Line 239: {
Line 240: throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
Line 241: }
Line 242: this.OnPagesGroupIDChanging(value);
Line 243: this.SendPropertyChanging();
Line 244: this._PagesGroupID = value;
Line 245: this.SendPropertyChanged("PagesGroupID");
Line 246: this.OnPagesGroupIDChanged();
Line 247: }
Line 248: }
Line 249: }
Line 250:
Line 251: [Column(Storage="_NavNameEN", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
Line 252: public string NavNameEN
Line 253: {
Line 254: get
Line 255: {
Line 256: return this._NavNameEN;
Line 257: }
Line 258: set
Line 259: {
Line 260: if ((this._NavNameEN != value))
Line 261: {
Line 262: this.OnNavNameENChanging(value);
Line 263: this.SendPropertyChanging();
Line 264: this._NavNameEN = value;
Line 265: this.SendPropertyChanged("NavNameEN");
Line 266: this.OnNavNameENChanged();
Line 267: }
Line 268: }
Line 269: }
Line 270:
Line 271: [Column(Storage="_NavNamePL", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
Line 272: public string NavNamePL
Line 273: {
Line 274: get
Line 275: {
Line 276: return this._NavNamePL;
Line 277: }
Line 278: set
Line 279: {
Line 280: if ((this._NavNamePL != value))
Line 281: {
Line 282: this.OnNavNamePLChanging(value);
Line 283: this.SendPropertyChanging();
Line 284: this._NavNamePL = value;
Line 285: this.SendPropertyChanged("NavNamePL");
Line 286: this.OnNavNamePLChanged();
Line 287: }
Line 288: }
Line 289: }
Line 290:
Line 291: [Column(Storage="_PageActive", DbType="Bit NOT NULL")]
Line 292: public bool PageActive
Line 293: {
Line 294: get
Line 295: {
Line 296: return this._PageActive;
Line 297: }
Line 298: set
Line 299: {
Line 300: if ((this._PageActive != value))
Line 301: {
Line 302: this.OnPageActiveChanging(value);
Line 303: this.SendPropertyChanging();
Line 304: this._PageActive = value;
Line 305: this.SendPropertyChanged("PageActive");
Line 306: this.OnPageActiveChanged();
Line 307: }
Line 308: }
Line 309: }
Line 310:
Line 311: [Column(Storage="_NavToolTipEN", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 312: public string NavToolTipEN
Line 313: {
Line 314: get
Line 315: {
Line 316: return this._NavToolTipEN;
Line 317: }
Line 318: set
Line 319: {
Line 320: if ((this._NavToolTipEN != value))
Line 321: {
Line 322: this.OnNavToolTipENChanging(value);
Line 323: this.SendPropertyChanging();
Line 324: this._NavToolTipEN = value;
Line 325: this.SendPropertyChanged("NavToolTipEN");
Line 326: this.OnNavToolTipENChanged();
Line 327: }
Line 328: }
Line 329: }
Line 330:
Line 331: [Column(Storage="_NavToolTipPL", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 332: public string NavToolTipPL
Line 333: {
Line 334: get
Line 335: {
Line 336: return this._NavToolTipPL;
Line 337: }
Line 338: set
Line 339: {
Line 340: if ((this._NavToolTipPL != value))
Line 341: {
Line 342: this.OnNavToolTipPLChanging(value);
Line 343: this.SendPropertyChanging();
Line 344: this._NavToolTipPL = value;
Line 345: this.SendPropertyChanged("NavToolTipPL");
Line 346: this.OnNavToolTipPLChanged();
Line 347: }
Line 348: }
Line 349: }
Line 350:
Line 351: [Association(Name="PagesGroup_Page", Storage="_PagesGroup", ThisKey="PagesGroupID", IsForeignKey=true)]
Line 352: public PagesGroup PagesGroup
Line 353: {
Line 354: get
Line 355: {
Line 356: return this._PagesGroup.Entity;
Line 357: }
Line 358: set
Line 359: {
Line 360: PagesGroup previousValue = this._PagesGroup.Entity;
Line 361: if (((previousValue != value)
Line 362: || (this._PagesGroup.HasLoadedOrAssignedValue == false)))
Line 363: {
Line 364: this.SendPropertyChanging();
Line 365: if ((previousValue != null))
Line 366: {
Line 367: this._PagesGroup.Entity = null;
Line 368: previousValue.Pages.Remove(this);
Line 369: }
Line 370: this._PagesGroup.Entity = value;
Line 371: if ((value != null))
Line 372: {
Line 373: value.Pages.Add(this);
Line 374: this._PagesGroupID = value.PagesGroupID;
Line 375: }
Line 376: else
Line 377: {
Line 378: this._PagesGroupID = default(int);
Line 379: }
Line 380: this.SendPropertyChanged("PagesGroup");
Line 381: }
Line 382: }
Line 383: }
Line 384:
Line 385: public event PropertyChangingEventHandler PropertyChanging;
Line 386:
Line 387: public event PropertyChangedEventHandler PropertyChanged;
Line 388:
Line 389: protected virtual void SendPropertyChanging()
Line 390: {
Line 391: if ((this.PropertyChanging != null))
Line 392: {
Line 393: this.PropertyChanging(this, emptyChangingEventArgs);
Line 394: }
Line 395: }
Line 396:
Line 397: protected virtual void SendPropertyChanged(String propertyName)
Line 398: {
Line 399: if ((this.PropertyChanged != null))
Line 400: {
Line 401: this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
Line 402: }
Line 403: }
Line 404: }
Line 405:
Line 406: [Table(Name="dbo.PagesGroups")]
Line 407: public partial class PagesGroup : INotifyPropertyChanging, INotifyPropertyChanged
Line 408: {
Line 409:
Line 410: private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
Line 411:
Line 412: private int _PagesGroupID;
Line 413:
Line 414: private string _NavGroupNameEN;
Line 415:
Line 416: private string _NavGroupNamePL;
Line 417:
Line 418: private string _NavGroupToolTipEN;
Line 419:
Line 420: private string _NavGroupToolTipPL;
Line 421:
Line 422: private string _GroupDescriptionEN;
Line 423:
Line 424: private string _GroupDescriptionPL;
Line 425:
Line 426: private bool _GroupActive;
Line 427:
Line 428: private EntitySet<Page> _Pages;
Line 429:
Line 430: #region Extensibility Method Definitions
Line 431: partial void OnLoaded();
Line 432: partial void OnValidate(System.Data.Linq.ChangeAction action);
Line 433: partial void OnCreated();
Line 434: partial void OnPagesGroupIDChanging(int value);
Line 435: partial void OnPagesGroupIDChanged();
Line 436: partial void OnNavGroupNameENChanging(string value);
Line 437: partial void OnNavGroupNameENChanged();
Line 438: partial void OnNavGroupNamePLChanging(string value);
Line 439: partial void OnNavGroupNamePLChanged();
Line 440: partial void OnNavGroupToolTipENChanging(string value);
Line 441: partial void OnNavGroupToolTipENChanged();
Line 442: partial void OnNavGroupToolTipPLChanging(string value);
Line 443: partial void OnNavGroupToolTipPLChanged();
Line 444: partial void OnGroupDescriptionENChanging(string value);
Line 445: partial void OnGroupDescriptionENChanged();
Line 446: partial void OnGroupDescriptionPLChanging(string value);
Line 447: partial void OnGroupDescriptionPLChanged();
Line 448: partial void OnGroupActiveChanging(bool value);
Line 449: partial void OnGroupActiveChanged();
Line 450: #endregion
Line 451:
Line 452: public PagesGroup()
Line 453: {
Line 454: this._Pages = new EntitySet<Page>(new Action<Page>(this.attach_Pages), new Action<Page>(this.detach_Pages));
Line 455: OnCreated();
Line 456: }
Line 457:
Line 458: [Column(Storage="_PagesGroupID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
Line 459: public int PagesGroupID
Line 460: {
Line 461: get
Line 462: {
Line 463: return this._PagesGroupID;
Line 464: }
Line 465: set
Line 466: {
Line 467: if ((this._PagesGroupID != value))
Line 468: {
Line 469: this.OnPagesGroupIDChanging(value);
Line 470: this.SendPropertyChanging();
Line 471: this._PagesGroupID = value;
Line 472: this.SendPropertyChanged("PagesGroupID");
Line 473: this.OnPagesGroupIDChanged();
Line 474: }
Line 475: }
Line 476: }
Line 477:
Line 478: [Column(Storage="_NavGroupNameEN", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
Line 479: public string NavGroupNameEN
Line 480: {
Line 481: get
Line 482: {
Line 483: return this._NavGroupNameEN;
Line 484: }
Line 485: set
Line 486: {
Line 487: if ((this._NavGroupNameEN != value))
Line 488: {
Line 489: this.OnNavGroupNameENChanging(value);
Line 490: this.SendPropertyChanging();
Line 491: this._NavGroupNameEN = value;
Line 492: this.SendPropertyChanged("NavGroupNameEN");
Line 493: this.OnNavGroupNameENChanged();
Line 494: }
Line 495: }
Line 496: }
Line 497:
Line 498: [Column(Storage="_NavGroupNamePL", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
Line 499: public string NavGroupNamePL
Line 500: {
Line 501: get
Line 502: {
Line 503: return this._NavGroupNamePL;
Line 504: }
Line 505: set
Line 506: {
Line 507: if ((this._NavGroupNamePL != value))
Line 508: {
Line 509: this.OnNavGroupNamePLChanging(value);
Line 510: this.SendPropertyChanging();
Line 511: this._NavGroupNamePL = value;
Line 512: this.SendPropertyChanged("NavGroupNamePL");
Line 513: this.OnNavGroupNamePLChanged();
Line 514: }
Line 515: }
Line 516: }
Line 517:
Line 518: [Column(Storage="_NavGroupToolTipEN", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 519: public string NavGroupToolTipEN
Line 520: {
Line 521: get
Line 522: {
Line 523: return this._NavGroupToolTipEN;
Line 524: }
Line 525: set
Line 526: {
Line 527: if ((this._NavGroupToolTipEN != value))
Line 528: {
Line 529: this.OnNavGroupToolTipENChanging(value);
Line 530: this.SendPropertyChanging();
Line 531: this._NavGroupToolTipEN = value;
Line 532: this.SendPropertyChanged("NavGroupToolTipEN");
Line 533: this.OnNavGroupToolTipENChanged();
Line 534: }
Line 535: }
Line 536: }
Line 537:
Line 538: [Column(Storage="_NavGroupToolTipPL", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 539: public string NavGroupToolTipPL
Line 540: {
Line 541: get
Line 542: {
Line 543: return this._NavGroupToolTipPL;
Line 544: }
Line 545: set
Line 546: {
Line 547: if ((this._NavGroupToolTipPL != value))
Line 548: {
Line 549: this.OnNavGroupToolTipPLChanging(value);
Line 550: this.SendPropertyChanging();
Line 551: this._NavGroupToolTipPL = value;
Line 552: this.SendPropertyChanged("NavGroupToolTipPL");
Line 553: this.OnNavGroupToolTipPLChanged();
Line 554: }
Line 555: }
Line 556: }
Line 557:
Line 558: [Column(Storage="_GroupDescriptionEN", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 559: public string GroupDescriptionEN
Line 560: {
Line 561: get
Line 562: {
Line 563: return this._GroupDescriptionEN;
Line 564: }
Line 565: set
Line 566: {
Line 567: if ((this._GroupDescriptionEN != value))
Line 568: {
Line 569: this.OnGroupDescriptionENChanging(value);
Line 570: this.SendPropertyChanging();
Line 571: this._GroupDescriptionEN = value;
Line 572: this.SendPropertyChanged("GroupDescriptionEN");
Line 573: this.OnGroupDescriptionENChanged();
Line 574: }
Line 575: }
Line 576: }
Line 577:
Line 578: [Column(Storage="_GroupDescriptionPL", DbType="NText", UpdateCheck=UpdateCheck.Never)]
Line 579: public string GroupDescriptionPL
Line 580: {
Line 581: get
Line 582: {
Line 583: return this._GroupDescriptionPL;
Line 584: }
Line 585: set
Line 586: {
Line 587: if ((this._GroupDescriptionPL != value))
Line 588: {
Line 589: this.OnGroupDescriptionPLChanging(value);
Line 590: this.SendPropertyChanging();
Line 591: this._GroupDescriptionPL = value;
Line 592: this.SendPropertyChanged("GroupDescriptionPL");
Line 593: this.OnGroupDescriptionPLChanged();
Line 594: }
Line 595: }
Line 596: }
Line 597:
Line 598: [Column(Storage="_GroupActive", DbType="Bit NOT NULL")]
Line 599: public bool GroupActive
Line 600: {
Line 601: get
Line 602: {
Line 603: return this._GroupActive;
Line 604: }
Line 605: set
Line 606: {
Line 607: if ((this._GroupActive != value))
Line 608: {
Line 609: this.OnGroupActiveChanging(value);
Line 610: this.SendPropertyChanging();
Line 611: this._GroupActive = value;
Line 612: this.SendPropertyChanged("GroupActive");
Line 613: this.OnGroupActiveChanged();
Line 614: }
Line 615: }
Line 616: }
Line 617:
Line 618: [Association(Name="PagesGroup_Page", Storage="_Pages", OtherKey="PagesGroupID")]
Line 619: public EntitySet<Page> Pages
Line 620: {
Line 621: get
Line 622: {
Line 623: return this._Pages;
Line 624: }
Line 625: set
Line 626: {
Line 627: this._Pages.Assign(value);
Line 628: }
Line 629: }
Line 630:
Line 631: public event PropertyChangingEventHandler PropertyChanging;
Line 632:
Line 633: public event PropertyChangedEventHandler PropertyChanged;
Line 634:
Line 635: protected virtual void SendPropertyChanging()
Line 636: {
Line 637: if ((this.PropertyChanging != null))
Line 638: {
Line 639: this.PropertyChanging(this, emptyChangingEventArgs);
Line 640: }
Line 641: }
Line 642:
Line 643: protected virtual void SendPropertyChanged(String propertyName)
Line 644: {
Line 645: if ((this.PropertyChanged != null))
Line 646: {
Line 647: this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
Line 648: }
Line 649: }
Line 650:
Line 651: private void attach_Pages(Page entity)
Line 652: {
Line 653: this.SendPropertyChanging();
Line 654: entity.PagesGroup = this;
Line 655: }
Line 656:
Line 657: private void detach_Pages(Page entity)
Line 658: {
Line 659: this.SendPropertyChanging();
Line 660: entity.PagesGroup = null;
Line 661: }
Line 662: }
Line 663: #pragma warning restore 1591
Line 664:--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433