Created
November 5, 2009 12:00
-
-
Save jfromaniello/227001 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// No Metadata Documentation available. | |
/// </summary> | |
[EdmEntityTypeAttribute(NamespaceName="Model1", Name="Prueba")] | |
[Serializable()] | |
[DataContractAttribute(IsReference=true)] | |
public partial class Prueba : EntityObject | |
{ | |
#region Factory Method | |
/// <summary> | |
/// Create a new Prueba object. | |
/// </summary> | |
/// <param name="id">Initial value of the Id property.</param> | |
/// <param name="nombre">Initial value of the Nombre property.</param> | |
/// <param name="apellido">Initial value of the Apellido property.</param> | |
public static Prueba CreatePrueba(global::System.Int32 id, global::System.String nombre, global::System.String apellido) | |
{ | |
Prueba prueba = new Prueba(); | |
prueba.Id = id; | |
prueba.Nombre = nombre; | |
prueba.Apellido = apellido; | |
return prueba; | |
} | |
#endregion | |
#region Primitive Properties | |
/// <summary> | |
/// No Metadata Documentation available. | |
/// </summary> | |
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] | |
[DataMemberAttribute()] | |
public global::System.Int32 Id | |
{ | |
get | |
{ | |
return _Id; | |
} | |
set | |
{ | |
if (_Id != value) | |
{ | |
OnIdChanging(value); | |
ReportPropertyChanging("Id"); | |
_Id = StructuralObject.SetValidValue(value); | |
ReportPropertyChanged("Id"); | |
OnIdChanged(); | |
} | |
} | |
} | |
private global::System.Int32 _Id; | |
partial void OnIdChanging(global::System.Int32 value); | |
partial void OnIdChanged(); | |
/// <summary> | |
/// No Metadata Documentation available. | |
/// </summary> | |
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] | |
[DataMemberAttribute()] | |
public global::System.String Nombre | |
{ | |
get | |
{ | |
return _Nombre; | |
} | |
set | |
{ | |
OnNombreChanging(value); | |
ReportPropertyChanging("Nombre"); | |
_Nombre = StructuralObject.SetValidValue(value, false); | |
ReportPropertyChanged("Nombre"); | |
OnNombreChanged(); | |
} | |
} | |
private global::System.String _Nombre; | |
partial void OnNombreChanging(global::System.String value); | |
partial void OnNombreChanged(); | |
/// <summary> | |
/// No Metadata Documentation available. | |
/// </summary> | |
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] | |
[DataMemberAttribute()] | |
public global::System.String Apellido | |
{ | |
get | |
{ | |
return _Apellido; | |
} | |
set | |
{ | |
OnApellidoChanging(value); | |
ReportPropertyChanging("Apellido"); | |
_Apellido = StructuralObject.SetValidValue(value, false); | |
ReportPropertyChanged("Apellido"); | |
OnApellidoChanged(); | |
} | |
} | |
private global::System.String _Apellido; | |
partial void OnApellidoChanging(global::System.String value); | |
partial void OnApellidoChanged(); | |
#endregion | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment