mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* System.Data.ObjectSpaces/ObjectContext.cs:
* System.Data.ObjectSpaces/ObjectReader.cs:
* System.Data.ObjectSpaces/ObjectSet.cs:
* System.Data.ObjectSpaces/ObjectSpace.cs:
Some implementation
* System.Data.ObjectSpaces/ObjectList.cs:
* System.Data.ObjectSpaces/ObjectSources.cs:
* System.Data.ObjectSpaces.Schema/ObjectRelationship.cs:
* System.Data.ObjectSpaces.Schema/ObjectSchema.cs:
* System.Data.ObjectSpaces.Schema/SchemaClass.cs:
* System.Data.ObjectSpaces.Schema/SchemaMember.cs:
Remove erroneous "private" modifiers
svn path=/trunk/mcs/; revision=21534
125 lines
2.8 KiB
C#
125 lines
2.8 KiB
C#
//
|
|
// System.Data.ObjectSpaces.Schema.ObjectRelationship.cs
|
|
//
|
|
// Author:
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2003
|
|
//
|
|
|
|
#if NET_1_2
|
|
|
|
using System.Data.Mapping;
|
|
|
|
namespace System.Data.ObjectSpaces.Schema {
|
|
public sealed class ObjectRelationship : IDomainConstraint
|
|
{
|
|
#region Fields
|
|
|
|
string name;
|
|
SchemaClass childClass;
|
|
SchemaMember childMember;
|
|
SchemaClass parentClass;
|
|
SchemaMember parentMember;
|
|
ObjectRelationshipType type;
|
|
bool isCascadeDelete;
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
[MonoTODO]
|
|
public ObjectRelationship (string name, SchemaClass parentClass, SchemaMember parentMember, SchemaClass childClass, SchemaMember childMember, ObjectRelationshipType type)
|
|
{
|
|
Name = name;
|
|
Type = type;
|
|
|
|
this.parentClass = parentClass;
|
|
this.parentMember = parentMember;
|
|
this.childClass = childClass;
|
|
this.childMember = childMember;
|
|
}
|
|
|
|
[MonoTODO]
|
|
public ObjectRelationship (string name, SchemaClass parentClass, SchemaMember parentMember, SchemaClass childClass, SchemaMember childMember, ObjectRelationshipType type, bool isCascadeDelete)
|
|
: this (name, parentClass, parentMember, childClass, childMember, type)
|
|
{
|
|
IsCascadeDelete = isCascadeDelete;
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
public SchemaClass ChildClass {
|
|
get { return childClass; }
|
|
}
|
|
|
|
public SchemaMember ChildMember {
|
|
get { return childMember; }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public ObjectSchema DeclaringObjectSchema {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public ExtendedPropertyCollection ExtendedProperties {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
bool IDomainConstraint.CascadeDelete {
|
|
get { return IsCascadeDelete; }
|
|
}
|
|
|
|
[MonoTODO]
|
|
IDomainSchema IDomainConstraint.DomainSchema {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
IDomainFieldJoinCollection IDomainConstraint.FieldJoins {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
IDomainStructure IDomainConstraint.FromDomainStructure {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
IDomainStructure IDomainConstraint.ToDomainStructure {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
public bool IsCascadeDelete {
|
|
get { return isCascadeDelete; }
|
|
set { isCascadeDelete = value; }
|
|
}
|
|
|
|
public string Name {
|
|
get { return name; }
|
|
set { name = value; }
|
|
}
|
|
|
|
|
|
public SchemaClass ParentClass {
|
|
get { return parentClass; }
|
|
}
|
|
|
|
public SchemaMember ParentMember {
|
|
get { return parentMember; }
|
|
}
|
|
|
|
public ObjectRelationshipType Type {
|
|
get { return type; }
|
|
set { type = value; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
}
|
|
}
|
|
|
|
#endif // NET_1_2
|