184 {
185 get
186 {
189 }
190 set
191 {
192 long scopeId = DataCommonEventSource.Log.EnterScope(
"<ds.DataRelation.set_Nested|API> {0}, {1}",
ObjectID,
value);
193 try
194 {
196 {
197 return;
198 }
200 {
202 {
204 }
207 }
209 {
210 throw ExceptionBuilder.RelationNestedReadOnly();
211 }
213 {
215 }
216 else
217 {
219 }
222 {
225 {
227 {
229 {
230 row.CheckForLoops(
this);
231 }
233 {
234 throw ExceptionBuilder.DatasetConflictingName(
DataSet.DataSetName);
235 }
236 ChildTable._fNestedInDataset = false;
237 }
238 else
239 {
241 {
242 row2.GetParentRow(
this);
243 }
244 }
245 }
247 }
248 else
249 {
251 }
255 {
256 return;
257 }
260 {
262 {
264 {
266 }
268 {
270 throw ExceptionBuilder.InvalidParentNamespaceinNestedRelation(
ChildTable.TableName);
271 }
272 }
273 }
275 {
276 throw ExceptionBuilder.TableCantBeNestedInTwoTables(
ChildTable.TableName);
277 }
278 ChildTable._tableNamespace = null;
279 }
280 finally
281 {
282 DataCommonEventSource.Log.ExitScope(scopeId);
283 }
284 }
285 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
virtual MappingType ColumnMapping
DataRelation(string? relationName, DataColumn parentColumn, DataColumn childColumn)
void RaisePropertyChanging(string name)
virtual DataTable ParentTable
virtual ? DataSet DataSet
virtual DataTable ChildTable
void ValidateMultipleNestedRelations()
virtual string RelationName
void CheckStateForProperty()
void CheckNestedRelations()
void CheckNamespaceValidityForNestedRelations(string ns)
DataColumn[] ColumnsReference