 |
| ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 4th, 2011, 09:24 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Resource not found
Hi,
Congrats on a great set of books and a great forum.
I'm getting the error -
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
On every page of my application while running thru VWD2008. Even if I simply try to view a page in browser I still get the error. A really really old version of the site works fine but I've made too many changes to go back to it. I really need the current version to work so I can proceed with the project.
Does anyone know why the old version works and the new version doesnt even though they are essentialy the same application? Does anyone know where I can look to find a fix for this? Any help would be greatly appreciated.
Code:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
<add key="Participants" value="Data Source=*******;Initial Catalog=ParticipantTest;Integrated Security=True" />
</appSettings>
<connectionStrings>
<add name="ParticipantsTestConnectionString3" connectionString="Data Source=*******;Initial Catalog=ParticipantsTest;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="ParticipantTestConnectionString" connectionString="Data Source=*******;Initial Catalog=ParticipantTest;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727"><dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding></runtime>
</configuration>
Webconfig
Thanx
Last edited by GeeTee991100; May 4th, 2011 at 09:33 AM..
|
|

May 4th, 2011, 11:03 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Does anybody have any idea? I'm still struggling with this. Help would be appreciated as I dont seem to be able to find this exact error in any of the articles on other forums.
Last edited by GeeTee991100; May 4th, 2011 at 11:07 AM..
|
|

May 4th, 2011, 11:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you provide more information? How is your site set up? How do you view the pages? Are you using IIS or the built-in server? What's the address in the address anr of your browser? What changes did you make between the "old" and the "new" version?
Also, try using Fiddler (which you can download for free) and see if it tells you if any redirects occur.
Cheers,
Imar
|
|

May 4th, 2011, 11:32 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Thanks for the reply.
I thought the issue was with my linq dataclass so deleted it and re-created it. Now I get a whole bunch of -
Error 1 Invalid token 'void' in class, struct, or interface member declaration
errors on the regenerated dataclass. I need to solve that before I can even look at the other error. How is it that the recreated linq dataclass is now producing errors in generated code?
To answer your question, the site is entirely hosted in VWD2008, I try to build the the whole site and individual pages and it makes no difference same error every time, I am using the built in server, I have added about a dozen pages on the new site all of which are similar if not the same as pages on the old site.
I'll try using fiddler.
Thanx
Last edited by GeeTee991100; May 4th, 2011 at 11:34 AM..
|
|

May 4th, 2011, 11:34 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
Error 1 Invalid token 'void' in class, struct, or interface member declaration
|
Nine out of 10 times, this error means you're missing a curly brace somehwere in your code, or have one too many.
If you need further assistance, you need to provide more detailed answers to the questions I asked.
Cheers,
Imar
|
|

May 4th, 2011, 11:45 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
I dont understand. The errors are in the code that was generated when i recreated my dataclasse. I simply dragged all my tables from my database solution into the windows and saved it.
Here is the generated code
Code:
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3620
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
[System.Data.Linq.Mapping.DatabaseAttribute(Name="ParticipantsTest")]
public partial class DataClassesDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertPerson(Person instance);
partial void UpdatePerson(Person instance);
partial void DeletePerson(Person instance);
partial void InsertProjectRef(ProjectRef instance);
partial void UpdateProjectRef(ProjectRef instance);
partial void DeleteProjectRef(ProjectRef instance);
partial void InsertProject(Project instance);
partial void UpdateProject(Project instance);
partial void DeleteProject(Project instance);
partial void InsertQualification(Qualification instance);
partial void UpdateQualification(Qualification instance);
partial void DeleteQualification(Qualification instance);
partial void InsertRegister(Register instance);
partial void UpdateRegister(Register instance);
partial void DeleteRegister(Register instance);
partial void InsertSession(Session instance);
partial void UpdateSession(Session instance);
partial void DeleteSession(Session instance);
#endregion
public DataClassesDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["ParticipantsTestConnectionString3"].ConnectionString, mappingSource)
{
OnCreated();
}
public DataClassesDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClassesDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Person> Persons
{
get
{
return this.GetTable<Person>();
}
}
public System.Data.Linq.Table<ProjectRef> ProjectRefs
{
get
{
return this.GetTable<ProjectRef>();
}
}
public System.Data.Linq.Table<Project> Projects
{
get
{
return this.GetTable<Project>();
}
}
public System.Data.Linq.Table<Qualification> Qualifications
{
get
{
return this.GetTable<Qualification>();
}
}
public System.Data.Linq.Table<Register> Registers
{
get
{
return this.GetTable<Register>();
}
}
public System.Data.Linq.Table<Session> Sessions
{
get
{
return this.GetTable<Session>();
}
}
}
[Table(Name="dbo.Persons")]
public partial class Person : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _PersonID;
private System.Nullable<int> _ProjectID;
private string _ProjectNo;
private string _RefNo;
private string _FirstName;
private string _Surname;
private string _NickName;
private string _Gender;
private string _EthnicOrigin;
private System.Nullable<System.DateTime> _DOB;
private string _Age;
private string _Address;
private string _TelephoneNumber;
private string _EmergencyContact;
private string _EmergencyNumber;
private string _Disability;
private string _SchoolCollegeOther;
private string _TravelOther;
private EntitySet<Register> _Registers;
private EntityRef<Project> _Project;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnPersonIDChanging(int value);
partial void OnPersonIDChanged();
partial void OnProjectIDChanging(System.Nullable<int> value);
partial void OnProjectIDChanged();
partial void OnProjectNoChanging(string value);
partial void OnProjectNoChanged();
partial void OnRefNoChanging(string value);
partial void OnRefNoChanged();
partial void OnFirstNameChanging(string value);
partial void OnFirstNameChanged();
partial void OnSurnameChanging(string value);
partial void OnSurnameChanged();
partial void OnNickNameChanging(string value);
partial void OnNickNameChanged();
partial void OnGenderChanging(string value);
partial void OnGenderChanged();
partial void OnEthnicOriginChanging(string value);
partial void OnEthnicOriginChanged();
partial void OnDOBChanging(System.Nullable<System.DateTime> value);
partial void OnDOBChanged();
partial void OnAgeChanging(string value);
partial void OnAgeChanged();
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
partial void OnTelephoneNumberChanging(string value);
partial void OnTelephoneNumberChanged();
partial void OnEmergencyContactChanging(string value);
partial void OnEmergencyContactChanged();
partial void OnEmergencyNumberChanging(string value);
partial void OnEmergencyNumberChanged();
partial void OnDisabilityChanging(string value);
partial void OnDisabilityChanged();
partial void OnSchoolCollegeOtherChanging(string value);
partial void OnSchoolCollegeOtherChanged();
partial void OnTravelOtherChanging(string value);
partial void OnTravelOtherChanged();
#endregion
public Person()
{
this._Registers = new EntitySet<Register>(new Action<Register>(this.attach_Registers), new Action<Register>(this.detach_Registers));
this._Project = default(EntityRef<Project>);
OnCreated();
}
[Column(Storage="_PersonID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int PersonID
{
get
{
return this._PersonID;
}
set
{
if ((this._PersonID != value))
{
this.OnPersonIDChanging(value);
this.SendPropertyChanging();
this._PersonID = value;
this.SendPropertyChanged("PersonID");
this.OnPersonIDChanged();
}
}
}
[Column(Storage="_ProjectID", DbType="Int")]
public System.Nullable<int> ProjectID
{
get
{
return this._ProjectID;
}
set
{
if ((this._ProjectID != value))
{
if (this._Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIDChanging(value);
this.SendPropertyChanging();
this._ProjectID = value;
this.SendPropertyChanged("ProjectID");
this.OnProjectIDChanged();
}
}
}
[Column(Storage="_ProjectNo", DbType="NVarChar(10)")]
public string ProjectNo
{
get
{
return this._ProjectNo;
}
set
{
if ((this._ProjectNo != value))
{
this.OnProjectNoChanging(value);
this.SendPropertyChanging();
this._ProjectNo = value;
this.SendPropertyChanged("ProjectNo");
this.OnProjectNoChanged();
}
}
}
[Column(Storage="_RefNo", DbType="NVarChar(50)")]
public string RefNo
{
get
{
return this._RefNo;
}
set
{
if ((this._RefNo != value))
{
this.OnRefNoChanging(value);
this.SendPropertyChanging();
this._RefNo = value;
this.SendPropertyChanged("RefNo");
this.OnRefNoChanged();
}
}
}
[Column(Storage="_FirstName", DbType="NVarChar(50)")]
public string FirstName
{
get
{
return this._FirstName;
}
set
{
if ((this._FirstName != value))
{
this.OnFirstNameChanging(value);
this.SendPropertyChanging();
this._FirstName = value;
this.SendPropertyChanged("FirstName");
this.OnFirstNameChanged();
}
}
}
[Column(Storage="_Surname", DbType="NVarChar(50)")]
public string Surname
{
get
{
return this._Surname;
}
set
{
if ((this._Surname != value))
{
this.OnSurnameChanging(value);
this.SendPropertyChanging();
this._Surname = value;
this.SendPropertyChanged("Surname");
this.OnSurnameChanged();
}
}
}
[Column(Storage="_NickName", DbType="NVarChar(50)")]
public string NickName
{
get
{
return this._NickName;
}
set
{
if ((this._NickName != value))
{
this.OnNickNameChanging(value);
this.SendPropertyChanging();
this._NickName = value;
this.SendPropertyChanged("NickName");
this.OnNickNameChanged();
}
}
}
[Column(Storage="_Gender", DbType="NVarChar(10)")]
public string Gender
{
get
{
return this._Gender;
}
set
{
if ((this._Gender != value))
{
this.OnGenderChanging(value);
this.SendPropertyChanging();
this._Gender = value;
this.SendPropertyChanged("Gender");
this.OnGenderChanged();
}
}
}
[Column(Storage="_EthnicOrigin", DbType="NVarChar(50)")]
public string EthnicOrigin
{
get
{
return this._EthnicOrigin;
}
set
{
if ((this._EthnicOrigin != value))
{
this.OnEthnicOriginChanging(value);
this.SendPropertyChanging();
this._EthnicOrigin = value;
this.SendPropertyChanged("EthnicOrigin");
this.OnEthnicOriginChanged();
}
}
}
[Column(Storage="_DOB", DbType="DateTime")]
public System.Nullable<System.DateTime> DOB
{
get
{
return this._DOB;
}
set
{
if ((this._DOB != value))
{
this.OnDOBChanging(value);
this.SendPropertyChanging();
this._DOB = value;
this.SendPropertyChanged("DOB");
this.OnDOBChanged();
}
}
}
[Column(Storage="_Age", DbType="NVarChar(3)")]
public string Age
{
get
{
return this._Age;
}
set
{
if ((this._Age != value))
{
this.OnAgeChanging(value);
this.SendPropertyChanging();
this._Age = value;
this.SendPropertyChanged("Age");
this.OnAgeChanged();
}
}
}
[Column(Storage="_Address", DbType="NVarChar(50)")]
public string Address
{
get
{
return this._Address;
}
set
{
if ((this._Address != value))
{
this.OnAddressChanging(value);
this.SendPropertyChanging();
this._Address = value;
this.SendPropertyChanged("Address");
this.OnAddressChanged();
}
}
}
[Column(Storage="_TelephoneNumber", DbType="NVarChar(50)")]
public string TelephoneNumber
{
get
{
return this._TelephoneNumber;
}
set
{
if ((this._TelephoneNumber != value))
{
this.OnTelephoneNumberChanging(value);
this.SendPropertyChanging();
this._TelephoneNumber = value;
this.SendPropertyChanged("TelephoneNumber");
this.OnTelephoneNumberChanged();
}
}
}
[Column(Storage="_EmergencyContact", DbType="NVarChar(50)")]
public string EmergencyContact
{
get
{
return this._EmergencyContact;
}
set
{
if ((this._EmergencyContact != value))
{
this.OnEmergencyContactChanging(value);
this.SendPropertyChanging();
this._EmergencyContact = value;
this.SendPropertyChanged("EmergencyContact");
this.OnEmergencyContactChanged();
}
}
}
[Column(Storage="_EmergencyNumber", DbType="NVarChar(50)")]
public string EmergencyNumber
{
get
{
return this._EmergencyNumber;
}
set
{
if ((this._EmergencyNumber != value))
{
this.OnEmergencyNumberChanging(value);
this.SendPropertyChanging();
this._EmergencyNumber = value;
this.SendPropertyChanged("EmergencyNumber");
this.OnEmergencyNumberChanged();
}
}
}
[Column(Storage="_Disability", DbType="NVarChar(50)")]
public string Disability
{
get
{
return this._Disability;
}
set
{
if ((this._Disability != value))
{
this.OnDisabilityChanging(value);
this.SendPropertyChanging();
this._Disability = value;
this.SendPropertyChanged("Disability");
this.OnDisabilityChanged();
}
}
}
[Column(Storage="_SchoolCollegeOther", DbType="NVarChar(50)")]
public string SchoolCollegeOther
{
get
{
return this._SchoolCollegeOther;
}
set
{
if ((this._SchoolCollegeOther != value))
{
this.OnSchoolCollegeOtherChanging(value);
this.SendPropertyChanging();
this._SchoolCollegeOther = value;
this.SendPropertyChanged("SchoolCollegeOther");
this.OnSchoolCollegeOtherChanged();
}
}
}
[Column(Storage="_TravelOther", DbType="NVarChar(50)")]
public string TravelOther
{
get
{
return this._TravelOther;
}
set
{
if ((this._TravelOther != value))
{
this.OnTravelOtherChanging(value);
this.SendPropertyChanging();
this._TravelOther = value;
this.SendPropertyChanged("TravelOther");
this.OnTravelOtherChanged();
}
}
}
[Association(Name="Person_Register", Storage="_Registers", ThisKey="PersonID", OtherKey="PersonID")]
public EntitySet<Register> Registers
{
get
{
return this._Registers;
}
set
{
this._Registers.Assign(value);
}
}
[Association(Name="Project_Person", Storage="_Project", ThisKey="ProjectID", OtherKey="ProjectID", IsForeignKey=true)]
public Project Project
{
get
{
return this._Project.Entity;
}
set
{
Project previousValue = this._Project.Entity;
if (((previousValue != value)
|| (this._Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Project.Entity = null;
previousValue.Persons.Remove(this);
}
this._Project.Entity = value;
if ((value != null))
{
value.Persons.Add(this);
this._ProjectID = value.ProjectID;
}
else
{
this._ProjectID = default(Nullable<int>);
}
this.SendPropertyChanged("Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_Registers(Register entity)
{
this.SendPropertyChanging();
entity.Person = this;
}
private void detach_Registers(Register entity)
{
this.SendPropertyChanging();
entity.Person = null;
}
}
[Table(Name="dbo.ProjectRefs")]
public partial class ProjectRef : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ProjRefID;
private System.Nullable<int> _ProjectID;
private string _ProjectNo;
private string _RefID;
private string _Description;
private EntityRef<Project> _Project;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnProjRefIDChanging(int value);
partial void OnProjRefIDChanged();
partial void OnProjectIDChanging(System.Nullable<int> value);
partial void OnProjectIDChanged();
partial void OnProjectNoChanging(string value);
partial void OnProjectNoChanged();
partial void OnRefIDChanging(string value);
partial void OnRefIDChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
#endregion
public ProjectRef()
{
this._Project = default(EntityRef<Project>);
OnCreated();
}
[Column(Storage="_ProjRefID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int ProjRefID
{
get
{
return this._ProjRefID;
}
set
{
if ((this._ProjRefID != value))
{
this.OnProjRefIDChanging(value);
this.SendPropertyChanging();
this._ProjRefID = value;
this.SendPropertyChanged("ProjRefID");
this.OnProjRefIDChanged();
}
}
}
[Column(Storage="_ProjectID", DbType="Int")]
public System.Nullable<int> ProjectID
{
get
{
return this._ProjectID;
}
set
{
if ((this._ProjectID != value))
{
if (this._Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIDChanging(value);
this.SendPropertyChanging();
this._ProjectID = value;
this.SendPropertyChanged("ProjectID");
this.OnProjectIDChanged();
}
}
}
[Column(Storage="_ProjectNo", DbType="NChar(10)")]
public string ProjectNo
{
get
{
return this._ProjectNo;
}
set
{
if ((this._ProjectNo != value))
{
this.OnProjectNoChanging(value);
this.SendPropertyChanging();
this._ProjectNo = value;
this.SendPropertyChanged("ProjectNo");
this.OnProjectNoChanged();
}
}
}
[Column(Storage="_RefID", DbType="NChar(10)")]
public string RefID
{
get
{
return this._RefID;
}
set
{
if ((this._RefID != value))
{
this.OnRefIDChanging(value);
this.SendPropertyChanging();
this._RefID = value;
this.SendPropertyChanged("RefID");
this.OnRefIDChanged();
}
}
}
[Column(Storage="_Description", DbType="NVarChar(50)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[Association(Name="Project_ProjectRef", Storage="_Project", ThisKey="ProjectID", OtherKey="ProjectID", IsForeignKey=true)]
public Project Project
{
get
{
return this._Project.Entity;
}
set
{
Project previousValue = this._Project.Entity;
if (((previousValue != value)
|| (this._Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Project.Entity = null;
previousValue.ProjectRefs.Remove(this);
}
this._Project.Entity = value;
if ((value != null))
{
value.ProjectRefs.Add(this);
this._ProjectID = value.ProjectID;
}
else
{
this._ProjectID = default(Nullable<int>);
}
this.SendPropertyChanged("Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[Table(Name="dbo.Projects")]
public partial class Project : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ProjectID;
private string _ProjectNo;
private string _ProjectName;
private EntitySet<Person> _Persons;
private EntitySet<ProjectRef> _ProjectRefs;
private EntitySet<Qualification> _Qualifications;
private EntitySet<Session> _Sessions;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnProjectIDChanging(int value);
partial void OnProjectIDChanged();
partial void OnProjectNoChanging(string value);
partial void OnProjectNoChanged();
partial void OnProjectNameChanging(string value);
partial void OnProjectNameChanged();
#endregion
public Project()
{
this._Persons = new EntitySet<Person>(new Action<Person>(this.attach_Persons), new Action<Person>(this.detach_Persons));
this._ProjectRefs = new EntitySet<ProjectRef>(new Action<ProjectRef>(this.attach_ProjectRefs), new Action<ProjectRef>(this.detach_ProjectRefs));
this._Qualifications = new EntitySet<Qualification>(new Action<Qualification>(this.attach_Qualifications), new Action<Qualification>(this.detach_Qualifications));
this._Sessions = new EntitySet<Session>(new Action<Session>(this.attach_Sessions), new Action<Session>(this.detach_Sessions));
OnCreated();
}
[Column(Storage="_ProjectID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int ProjectID
{
get
{
return this._ProjectID;
}
set
{
if ((this._ProjectID != value))
{
this.OnProjectIDChanging(value);
this.SendPropertyChanging();
this._ProjectID = value;
this.SendPropertyChanged("ProjectID");
this.OnProjectIDChanged();
}
}
}
[Column(Storage="_ProjectNo", DbType="NVarChar(50)")]
public string ProjectNo
{
get
{
return this._ProjectNo;
}
set
{
if ((this._ProjectNo != value))
{
this.OnProjectNoChanging(value);
this.SendPropertyChanging();
this._ProjectNo = value;
this.SendPropertyChanged("ProjectNo");
this.OnProjectNoChanged();
}
}
}
[Column(Storage="_ProjectName", DbType="NVarChar(100)")]
public string ProjectName
{
get
{
return this._ProjectName;
}
set
{
if ((this._ProjectName != value))
{
this.OnProjectNameChanging(value);
this.SendPropertyChanging();
this._ProjectName = value;
this.SendPropertyChanged("ProjectName");
this.OnProjectNameChanged();
}
}
}
[Association(Name="Project_Person", Storage="_Persons", ThisKey="ProjectID", OtherKey="ProjectID")]
public EntitySet<Person> Persons
{
get
{
return this._Persons;
}
set
{
this._Persons.Assign(value);
}
}
[Association(Name="Project_ProjectRef", Storage="_ProjectRefs", ThisKey="ProjectID", OtherKey="ProjectID")]
public EntitySet<ProjectRef> ProjectRefs
{
get
{
return this._ProjectRefs;
}
set
{
this._ProjectRefs.Assign(value);
}
}
[Association(Name="Project_Qualification", Storage="_Qualifications", ThisKey="ProjectID", OtherKey="ProjectID")]
public EntitySet<Qualification> Qualifications
{
get
{
return this._Qualifications;
}
set
{
this._Qualifications.Assign(value);
}
}
[Association(Name="Project_Session", Storage="_Sessions", ThisKey="ProjectID", OtherKey="ProjectID")]
public EntitySet<Session> Sessions
{
get
{
return this._Sessions;
}
set
{
this._Sessions.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_Persons(Person entity)
{
this.SendPropertyChanging();
entity.Project = this;
}
private void detach_Persons(Person entity)
{
this.SendPropertyChanging();
entity.Project = null;
}
private void attach_ProjectRefs(ProjectRef entity)
{
this.SendPropertyChanging();
entity.Project = this;
}
private void detach_ProjectRefs(ProjectRef entity)
{
this.SendPropertyChanging();
entity.Project = null;
}
private void attach_Qualifications(Qualification entity)
{
this.SendPropertyChanging();
entity.Project = this;
}
private void detach_Qualifications(Qualification entity)
{
this.SendPropertyChanging();
entity.Project = null;
}
private void attach_Sessions(Session entity)
{
this.SendPropertyChanging();
entity.Project = this;
}
private void detach_Sessions(Session entity)
{
this.SendPropertyChanging();
entity.Project = null;
}
}
[Table(Name="dbo.Qualifications")]
public partial class Qualification : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _QualificationID;
private System.Nullable<int> _ProjectID;
private string _QualificationName;
private string _QualificationDetails;
private EntityRef<Project> _Project;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnQualificationIDChanging(int value);
partial void OnQualificationIDChanged();
partial void OnProjectIDChanging(System.Nullable<int> value);
partial void OnProjectIDChanged();
partial void OnQualificationNameChanging(string value);
partial void OnQualificationNameChanged();
partial void OnQualificationDetailsChanging(string value);
partial void OnQualificationDetailsChanged();
#endregion
public Qualification()
{
this._Project = default(EntityRef<Project>);
OnCreated();
}
[Column(Storage="_QualificationID", DbType="Int NOT NULL", IsPrimaryKey=true)]
public int QualificationID
{
get
{
return this._QualificationID;
}
set
{
if ((this._QualificationID != value))
{
this.OnQualificationIDChanging(value);
this.SendPropertyChanging();
this._QualificationID = value;
this.SendPropertyChanged("QualificationID");
this.OnQualificationIDChanged();
}
}
}
[Column(Storage="_ProjectID", DbType="Int")]
public System.Nullable<int> ProjectID
{
get
{
return this._ProjectID;
}
set
{
if ((this._ProjectID != value))
{
if (this._Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIDChanging(value);
this.SendPropertyChanging();
this._ProjectID = value;
this.SendPropertyChanged("ProjectID");
this.OnProjectIDChanged();
}
}
}
[Column(Storage="_QualificationName", DbType="NVarChar(50)")]
public string QualificationName
{
get
{
return this._QualificationName;
}
set
{
if ((this._QualificationName != value))
{
this.OnQualificationNameChanging(value);
this.SendPropertyChanging();
this._QualificationName = value;
this.SendPropertyChanged("QualificationName");
this.OnQualificationNameChanged();
}
}
}
[Column(Storage="_QualificationDetails", DbType="NVarChar(200)")]
public string QualificationDetails
{
get
{
return this._QualificationDetails;
}
set
{
if ((this._QualificationDetails != value))
{
this.OnQualificationDetailsChanging(value);
this.SendPropertyChanging();
this._QualificationDetails = value;
this.SendPropertyChanged("QualificationDetails");
this.OnQualificationDetailsChanged();
}
}
}
[Association(Name="Project_Qualification", Storage="_Project", ThisKey="ProjectID", OtherKey="ProjectID", IsForeignKey=true)]
public Project Project
{
get
{
return this._Project.Entity;
}
set
{
Project previousValue = this._Project.Entity;
if (((previousValue != value)
|| (this._Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Project.Entity = null;
previousValue.Qualifications.Remove(this);
}
this._Project.Entity = value;
if ((value != null))
{
value.Qualifications.Add(this);
this._ProjectID = value.ProjectID;
}
else
{
this._ProjectID = default(Nullable<int>);
}
this.SendPropertyChanged("Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[Table(Name="dbo.Registers")]
public partial class Register : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _RegisterID;
private System.Nullable<int> _SessionID;
private System.Nullable<int> _PersonID;
private EntityRef<Person> _Person;
private EntityRef<Session> _Session;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnRegisterIDChanging(int value);
partial void OnRegisterIDChanged();
partial void OnSessionIDChanging(System.Nullable<int> value);
partial void OnSessionIDChanged();
partial void OnPersonIDChanging(System.Nullable<int> value);
partial void OnPersonIDChanged();
#endregion
public Register()
{
this._Person = default(EntityRef<Person>);
this._Session = default(EntityRef<Session>);
OnCreated();
}
[Column(Storage="_RegisterID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int RegisterID
{
get
{
return this._RegisterID;
}
set
{
if ((this._RegisterID != value))
{
this.OnRegisterIDChanging(value);
this.SendPropertyChanging();
this._RegisterID = value;
this.SendPropertyChanged("RegisterID");
this.OnRegisterIDChanged();
}
}
}
[Column(Storage="_SessionID", DbType="Int")]
public System.Nullable<int> SessionID
{
get
{
return this._SessionID;
}
set
{
if ((this._SessionID != value))
{
if (this._Session.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnSessionIDChanging(value);
this.SendPropertyChanging();
this._SessionID = value;
this.SendPropertyChanged("SessionID");
this.OnSessionIDChanged();
}
}
}
[Column(Storage="_PersonID", DbType="Int")]
public System.Nullable<int> PersonID
{
get
{
return this._PersonID;
}
set
{
if ((this._PersonID != value))
{
if (this._Person.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnPersonIDChanging(value);
this.SendPropertyChanging();
this._PersonID = value;
this.SendPropertyChanged("PersonID");
this.OnPersonIDChanged();
}
}
}
[Association(Name="Person_Register", Storage="_Person", ThisKey="PersonID", OtherKey="PersonID", IsForeignKey=true)]
public Person Person
{
get
{
return this._Person.Entity;
}
set
{
Person previousValue = this._Person.Entity;
if (((previousValue != value)
|| (this._Person.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Person.Entity = null;
previousValue.Registers.Remove(this);
}
this._Person.Entity = value;
if ((value != null))
{
value.Registers.Add(this);
this._PersonID = value.PersonID;
}
else
{
this._PersonID = default(Nullable<int>);
}
this.SendPropertyChanged("Person");
}
}
}
[Association(Name="Session_Register", Storage="_Session", ThisKey="SessionID", OtherKey="SessionID", IsForeignKey=true)]
public Session Session
{
get
{
return this._Session.Entity;
}
set
{
Session previousValue = this._Session.Entity;
if (((previousValue != value)
|| (this._Session.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Session.Entity = null;
previousValue.Registers.Remove(this);
}
this._Session.Entity = value;
if ((value != null))
{
value.Registers.Add(this);
this._SessionID = value.SessionID;
}
else
{
this._SessionID = default(Nullable<int>);
}
this.SendPropertyChanged("Session");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[Table(Name="dbo.Sessions")]
public partial class Session : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _SessionID;
private System.Nullable<int> _ProjectID;
private string _NameOfactivity;
private string _Organisation;
private System.Nullable<System.DateTime> _DateOfActivity;
private System.Nullable<System.DateTime> _StartTime;
private System.Nullable<System.DateTime> _EndTime;
private EntitySet<Register> _Registers;
private EntityRef<Project> _Project;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSessionIDChanging(int value);
partial void OnSessionIDChanged();
partial void OnProjectIDChanging(System.Nullable<int> value);
partial void OnProjectIDChanged();
partial void OnNameOfactivityChanging(string value);
partial void OnNameOfactivityChanged();
partial void OnOrganisationChanging(string value);
partial void OnOrganisationChanged();
partial void OnDateOfActivityChanging(System.Nullable<System.DateTime> value);
partial void OnDateOfActivityChanged();
partial void OnStartTimeChanging(System.Nullable<System.DateTime> value);
partial void OnStartTimeChanged();
partial void OnEndTimeChanging(System.Nullable<System.DateTime> value);
partial void OnEndTimeChanged();
#endregion
public Session()
{
this._Registers = new EntitySet<Register>(new Action<Register>(this.attach_Registers), new Action<Register>(this.detach_Registers));
this._Project = default(EntityRef<Project>);
OnCreated();
}
[Column(Storage="_SessionID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int SessionID
{
get
{
return this._SessionID;
}
set
{
if ((this._SessionID != value))
{
this.OnSessionIDChanging(value);
this.SendPropertyChanging();
this._SessionID = value;
this.SendPropertyChanged("SessionID");
this.OnSessionIDChanged();
}
}
}
[Column(Storage="_ProjectID", DbType="Int")]
public System.Nullable<int> ProjectID
{
get
{
return this._ProjectID;
}
set
{
if ((this._ProjectID != value))
{
if (this._Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIDChanging(value);
this.SendPropertyChanging();
this._ProjectID = value;
this.SendPropertyChanged("ProjectID");
this.OnProjectIDChanged();
}
}
}
[Column(Storage="_NameOfactivity", DbType="NVarChar(50)")]
public string NameOfactivity
{
get
{
return this._NameOfactivity;
}
set
{
if ((this._NameOfactivity != value))
{
this.OnNameOfactivityChanging(value);
this.SendPropertyChanging();
this._NameOfactivity = value;
this.SendPropertyChanged("NameOfactivity");
this.OnNameOfactivityChanged();
}
}
}
[Column(Storage="_Organisation", DbType="NVarChar(50)")]
public string Organisation
{
get
{
return this._Organisation;
}
set
{
if ((this._Organisation != value))
{
this.OnOrganisationChanging(value);
this.SendPropertyChanging();
this._Organisation = value;
this.SendPropertyChanged("Organisation");
this.OnOrganisationChanged();
}
}
}
[Column(Storage="_DateOfActivity", DbType="DateTime")]
public System.Nullable<System.DateTime> DateOfActivity
{
get
{
return this._DateOfActivity;
}
set
{
if ((this._DateOfActivity != value))
{
this.OnDateOfActivityChanging(value);
this.SendPropertyChanging();
this._DateOfActivity = value;
this.SendPropertyChanged("DateOfActivity");
this.OnDateOfActivityChanged();
}
}
}
[Column(Storage="_StartTime", DbType="DateTime")]
public System.Nullable<System.DateTime> StartTime
{
get
{
return this._StartTime;
}
set
{
if ((this._StartTime != value))
{
this.OnStartTimeChanging(value);
this.SendPropertyChanging();
this._StartTime = value;
this.SendPropertyChanged("StartTime");
this.OnStartTimeChanged();
}
}
}
[Column(Storage="_EndTime", DbType="DateTime")]
public System.Nullable<System.DateTime> EndTime
{
get
{
return this._EndTime;
}
set
{
if ((this._EndTime != value))
{
this.OnEndTimeChanging(value);
this.SendPropertyChanging();
this._EndTime = value;
this.SendPropertyChanged("EndTime");
this.OnEndTimeChanged();
}
}
}
[Association(Name="Session_Register", Storage="_Registers", ThisKey="SessionID", OtherKey="SessionID")]
public EntitySet<Register> Registers
{
get
{
return this._Registers;
}
set
{
this._Registers.Assign(value);
}
}
[Association(Name="Project_Session", Storage="_Project", ThisKey="ProjectID", OtherKey="ProjectID", IsForeignKey=true)]
public Project Project
{
get
{
return this._Project.Entity;
}
set
{
Project previousValue = this._Project.Entity;
if (((previousValue != value)
|| (this._Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Project.Entity = null;
previousValue.Sessions.Remove(this);
}
this._Project.Entity = value;
if ((value != null))
{
value.Sessions.Add(this);
this._ProjectID = value.ProjectID;
}
else
{
this._ProjectID = default(Nullable<int>);
}
this.SendPropertyChanged("Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_Registers(Register entity)
{
this.SendPropertyChanging();
entity.Session = this;
}
private void detach_Registers(Register entity)
{
this.SendPropertyChanging();
entity.Session = null;
}
}
#pragma warning restore 1591
I cant really answer your question because I'm now getting this error.
Thanx
Last edited by GeeTee991100; May 4th, 2011 at 11:47 AM..
|
|

May 4th, 2011, 11:50 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It's auto generated code, so I can't suggest much about it. Maybe the problem is elsewhere and VWD can't compile the full site?
Try removing files from your site until the problem goes away...
Imar
|
|

May 4th, 2011, 11:54 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
OK I'll try that.
Thanks
|
|

May 4th, 2011, 12:06 PM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 38
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Its now working. Thanks for your help.
|
|
 |