ctx.GetTable<Adresse>();
public global::System.Data.Linq.Table<Adresse> Adresses {
get {
return this.GetTable<Adresse>();
}
[global::System.Data.Linq.StoredProcedure(Name="dbo.LireTypeProjet")]
public global::System.Collections.Generic.IEnumerable<LireTypeProjet> LireTypeProjet() {
global::System.Data.Linq.Provider.IQueryResults<LireTypeProjet> result = this.ExecuteMethodCall<LireTypeProjet>(
this, ((global::System.Reflection.MethodInfo)(global::System.Reflection.MethodInfo.GetCurrentMethod())));
return ((global::System.Collections.Generic.IEnumerable<LireTypeProjet>)(result));
[global::System.Data.Linq.Table(Name="dbo.Adresse")]
public partial class Adresse : global::System.Data.Linq.INotifyPropertyChanging,
global::System.ComponentModel.INotifyPropertyChanged {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public Site() {
this._PersonnelSites = new global::System.Data.Linq.EntitySet<PersonnelSite>
(new global::System.Action<PersonnelSite>
(this.Attach_PersonnelSites),
new global::System.Action<PersonnelSite>(this.Detach_PersonnelSites));
this._Adresse = default(global::System.Data.Linq.EntityRef<Adresse>);
[global::System.Data.Linq.Column(Storage="_Code", Name="Code", DBType="NChar(3) NOT NULL",
IsPrimaryKey=true, CanBeNull=false)]
public string Code {
return this._Code;
set {
if ((this._Code != value)) {
this.OnPropertyChanging("Code");
this._Code = value;
this.OnPropertyChanged("Code");
[global::System.Data.Linq.Column(Storage="_PersonnelID", Name="PersonnelID",
DBType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDBGenerated=true, CanBeNull=false)]
public int PersonnelID {
return this._PersonnelID;
[global::System.Data.Linq.Column(Storage="_Timestamp", Name="Timestamp",
DBType="rowversion NOT NULL", IsDBGenerated=true, IsVersion=true, CanBeNull=false)]
public byte[] Timestamp {
return this._Timestamp;
this._PersonnelSites = new global::System.Data.Linq.EntitySet<PersonnelSite>(
new global::System.Action<PersonnelSite>(this.Attach_PersonnelSites),
private void Attach_PersonnelSites(PersonnelSite entity) {
this.OnPropertyChanging(null);
entity.Site = this;
this.OnPropertyChanged(null);
private void Detach_PersonnelSites(PersonnelSite entity) {
entity.Site = null;
[global::System.Data.Linq.Association(Name="FK_Site_Adresse", Storage="_Adresse",
OtherKey="AdresseID", ThisKey="AdresseID", IsForeignKey=true)]
public Adresse Adresse {
return this._Adresse.Entity;
if ((this._Adresse.Entity != value)) {
this.OnPropertyChanging("Adresse");
if ((this._Adresse.Entity != null)) {
Adresse temp = this._Adresse.Entity;
this._Adresse.Entity = null;
temp.Sites.Remove(this);
this._Adresse.Entity = value;
if ((value != null)) {
value.Sites.Add(this);
this.OnPropertyChanged("Adresse");
global::System.Data.Linq.Provider.IQueryResults<LireTypeProjet> result =
this.ExecuteMethodCall<LireTypeProjet>(this,
((global::System.Reflection.MethodInfo)(
global::System.Reflection.MethodInfo.GetCurrentMethod())));
[global::System.Data.Linq.StoredProcedure(Name="dbo.EstUnManager")]
public int EstUnManager(
[global::System.Data.Linq.Parameter(Name="@PersonnelID")] global::System.Nullable<int> PersonnelID,
[global::System.Data.Linq.Parameter(Name="@EstManager")] ref global::System.Nullable<bool> EstManager) {
global::System.Data.Linq.Provider.IExecuteResults result =
this.ExecuteMethodCall(this,
global::System.Reflection.MethodInfo.GetCurrentMethod())), PersonnelID, EstManager);
EstManager = ((global::System.Nullable<bool>)(result.GetParameterValue(1)));
return ((int)(result.ReturnValue));