11using System.ComponentModel;
12using System.Data.EntityClient;
13using System.Data.Objects;
14using System.Data.Objects.DataClasses;
16using System.Runtime.Serialization;
17using System.Xml.Serialization;
19[assembly: EdmSchemaAttribute()]
57 #region Partial Methods
59 partial
void OnContextCreated();
63 #region ObjectSet Properties
72 if ((_Table2 ==
null))
74 _Table2 = base.CreateObjectSet<
Table2>(
"Table2");
79 private ObjectSet<Table2> _Table2;
90 base.AddObject(
"Table2", table2);
104 [EdmEntityTypeAttribute(NamespaceName=
"DataPortalTestDatabaseModel", Name=
"Table2")]
106 [DataContractAttribute(IsReference=
true)]
107 public partial class Table2 : EntityObject
109 #region Factory Method
117 public static Table2 CreateTable2(global::System.String firstName, global::System.String lastName, global::System.String smallColumn)
128 #region Simple Properties
133 [EdmScalarPropertyAttribute(EntityKeyProperty=
true, IsNullable=
false)]
134 [DataMemberAttribute()]
143 if (_FirstName != value)
145 OnFirstNameChanging(value);
146 ReportPropertyChanging(
"FirstName");
147 _FirstName = StructuralObject.SetValidValue(value,
false,
"FirstName");
148 ReportPropertyChanged(
"FirstName");
149 OnFirstNameChanged();
153 private global::System.String _FirstName;
154 partial
void OnFirstNameChanging(global::System.String value);
155 partial
void OnFirstNameChanged();
160 [EdmScalarPropertyAttribute(EntityKeyProperty=
true, IsNullable=
false)]
161 [DataMemberAttribute()]
170 if (_LastName != value)
172 OnLastNameChanging(value);
173 ReportPropertyChanging(
"LastName");
174 _LastName = StructuralObject.SetValidValue(value,
false,
"LastName");
175 ReportPropertyChanged(
"LastName");
180 private global::System.String _LastName;
181 partial
void OnLastNameChanging(global::System.String value);
182 partial
void OnLastNameChanged();
187 [EdmScalarPropertyAttribute(EntityKeyProperty=
true, IsNullable=
false)]
188 [DataMemberAttribute()]
197 if (_SmallColumn != value)
199 OnSmallColumnChanging(value);
200 ReportPropertyChanging(
"SmallColumn");
201 _SmallColumn = StructuralObject.SetValidValue(value,
false,
"SmallColumn");
202 ReportPropertyChanged(
"SmallColumn");
203 OnSmallColumnChanged();
207 private global::System.String _SmallColumn;
208 partial
void OnSmallColumnChanging(global::System.String value);
209 partial
void OnSmallColumnChanged();
No Metadata Documentation available.
DataPortalTestDatabaseEntities()
Initializes a new DataPortalTestDatabaseEntities object using the connection string found in the 'Dat...
DataPortalTestDatabaseEntities(EntityConnection connection)
Initialize a new DataPortalTestDatabaseEntities object.
DataPortalTestDatabaseEntities(string connectionString)
Initialize a new DataPortalTestDatabaseEntities object.
void AddToTable2(Table2 table2)
Deprecated Method for adding a new object to the Table2 EntitySet.
No Metadata Documentation available.
global::System.String FirstName
No Metadata Documentation available.
global::System.String SmallColumn
No Metadata Documentation available.
global::System.String LastName
No Metadata Documentation available.
static Table2 CreateTable2(global::System.String firstName, global::System.String lastName, global::System.String smallColumn)
Create a new Table2 object.
@ Serializable
Prevents updating or inserting until the transaction is complete.