CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
TestEFContext.Designer.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated from a template.
4//
5// Manual changes to this file may cause unexpected behavior in your application.
6// Manual changes to this file will be overwritten if the code is regenerated.
7// </auto-generated>
8//------------------------------------------------------------------------------
9
10using System;
11using System.ComponentModel;
12using System.Data.EntityClient;
13using System.Data.Objects;
14using System.Data.Objects.DataClasses;
15using System.Linq;
16using System.Runtime.Serialization;
17using System.Xml.Serialization;
18
19[assembly: EdmSchemaAttribute()]
20namespace Csla.Test.Data
21{
22 #region Contexts
23
27 public partial class DataPortalTestDatabaseEntities : ObjectContext
28 {
29 #region Constructors
30
34 public DataPortalTestDatabaseEntities() : base("name=DataPortalTestDatabaseEntities", "DataPortalTestDatabaseEntities")
35 {
36 OnContextCreated();
37 }
38
42 public DataPortalTestDatabaseEntities(string connectionString) : base(connectionString, "DataPortalTestDatabaseEntities")
43 {
44 OnContextCreated();
45 }
46
50 public DataPortalTestDatabaseEntities(EntityConnection connection) : base(connection, "DataPortalTestDatabaseEntities")
51 {
52 OnContextCreated();
53 }
54
55 #endregion
56
57 #region Partial Methods
58
59 partial void OnContextCreated();
60
61 #endregion
62
63 #region ObjectSet Properties
64
68 public ObjectSet<Table2> Table2
69 {
70 get
71 {
72 if ((_Table2 == null))
73 {
74 _Table2 = base.CreateObjectSet<Table2>("Table2");
75 }
76 return _Table2;
77 }
78 }
79 private ObjectSet<Table2> _Table2;
80
81 #endregion
82
83 #region AddTo Methods
84
88 public void AddToTable2(Table2 table2)
89 {
90 base.AddObject("Table2", table2);
91 }
92
93 #endregion
94
95 }
96
97 #endregion
98
99 #region Entities
100
104 [EdmEntityTypeAttribute(NamespaceName="DataPortalTestDatabaseModel", Name="Table2")]
105 [Serializable()]
106 [DataContractAttribute(IsReference=true)]
107 public partial class Table2 : EntityObject
108 {
109 #region Factory Method
110
117 public static Table2 CreateTable2(global::System.String firstName, global::System.String lastName, global::System.String smallColumn)
118 {
119 Table2 table2 = new Table2();
120 table2.FirstName = firstName;
121 table2.LastName = lastName;
122 table2.SmallColumn = smallColumn;
123 return table2;
124 }
125
126 #endregion
127
128 #region Simple Properties
129
133 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
134 [DataMemberAttribute()]
135 public global::System.String FirstName
136 {
137 get
138 {
139 return _FirstName;
140 }
141 set
142 {
143 if (_FirstName != value)
144 {
145 OnFirstNameChanging(value);
146 ReportPropertyChanging("FirstName");
147 _FirstName = StructuralObject.SetValidValue(value, false, "FirstName");
148 ReportPropertyChanged("FirstName");
149 OnFirstNameChanged();
150 }
151 }
152 }
153 private global::System.String _FirstName;
154 partial void OnFirstNameChanging(global::System.String value);
155 partial void OnFirstNameChanged();
156
160 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
161 [DataMemberAttribute()]
162 public global::System.String LastName
163 {
164 get
165 {
166 return _LastName;
167 }
168 set
169 {
170 if (_LastName != value)
171 {
172 OnLastNameChanging(value);
173 ReportPropertyChanging("LastName");
174 _LastName = StructuralObject.SetValidValue(value, false, "LastName");
175 ReportPropertyChanged("LastName");
176 OnLastNameChanged();
177 }
178 }
179 }
180 private global::System.String _LastName;
181 partial void OnLastNameChanging(global::System.String value);
182 partial void OnLastNameChanged();
183
187 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
188 [DataMemberAttribute()]
189 public global::System.String SmallColumn
190 {
191 get
192 {
193 return _SmallColumn;
194 }
195 set
196 {
197 if (_SmallColumn != value)
198 {
199 OnSmallColumnChanging(value);
200 ReportPropertyChanging("SmallColumn");
201 _SmallColumn = StructuralObject.SetValidValue(value, false, "SmallColumn");
202 ReportPropertyChanged("SmallColumn");
203 OnSmallColumnChanged();
204 }
205 }
206 }
207 private global::System.String _SmallColumn;
208 partial void OnSmallColumnChanging(global::System.String value);
209 partial void OnSmallColumnChanged();
210
211 #endregion
212
213 }
214
215 #endregion
216
217}
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.