440 lines
16 KiB
C#
440 lines
16 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Data
|
|
{
|
|
/// <summary>Represents an action restriction enforced on a set of columns in a primary key/foreign key relationship when a value or row is either deleted or updated.</summary>
|
|
// Token: 0x02000068 RID: 104
|
|
[Token(Token = "0x2000068")]
|
|
[DefaultProperty("ConstraintName")]
|
|
public class ForeignKeyConstraint : Constraint
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.ForeignKeyConstraint" /> class with the specified arrays of parent and child <see cref="T:System.Data.DataColumn" /> objects.</summary>
|
|
/// <param name="parentColumns">An array of parent <see cref="T:System.Data.DataColumn" /> in the constraint.</param>
|
|
/// <param name="childColumns">An array of child <see cref="T:System.Data.DataColumn" /> in the constraint.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">One or both of the columns is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Data.InvalidConstraintException">The columns have different data types.
|
|
/// -Or -
|
|
/// The tables don't belong to the same <see cref="T:System.Data.DataSet" />.</exception>
|
|
// Token: 0x0600068F RID: 1679 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600068F")]
|
|
[Address(RVA = "0xA30090", Offset = "0xA2F090", VA = "0x180A30090")]
|
|
public ForeignKeyConstraint(DataColumn[] parentColumns, DataColumn[] childColumns)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.ForeignKeyConstraint" /> class with the specified name, and arrays of parent and child <see cref="T:System.Data.DataColumn" /> objects.</summary>
|
|
/// <param name="constraintName">The name of the <see cref="T:System.Data.ForeignKeyConstraint" />. If <see langword="null" /> or empty string, a default name will be given when added to the constraints collection.</param>
|
|
/// <param name="parentColumns">An array of parent <see cref="T:System.Data.DataColumn" /> in the constraint.</param>
|
|
/// <param name="childColumns">An array of child <see cref="T:System.Data.DataColumn" /> in the constraint.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">One or both of the columns is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Data.InvalidConstraintException">The columns have different data types.
|
|
/// -Or -
|
|
/// The tables don't belong to the same <see cref="T:System.Data.DataSet" />.</exception>
|
|
// Token: 0x06000690 RID: 1680 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000690")]
|
|
[Address(RVA = "0xA300F0", Offset = "0xA2F0F0", VA = "0x180A300F0")]
|
|
public ForeignKeyConstraint(string constraintName, DataColumn[] parentColumns, DataColumn[] childColumns)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000110 RID: 272
|
|
// (get) Token: 0x06000691 RID: 1681 RVA: 0x00003F44 File Offset: 0x00002144
|
|
[Token(Token = "0x17000110")]
|
|
internal DataKey ChildKey
|
|
{
|
|
[Token(Token = "0x6000691")]
|
|
[Address(RVA = "0xA30180", Offset = "0xA2F180", VA = "0x180A30180")]
|
|
get
|
|
{
|
|
return default(DataKey);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the child columns of this constraint.</summary>
|
|
/// <returns>An array of <see cref="T:System.Data.DataColumn" /> objects that are the child columns of the constraint.</returns>
|
|
// Token: 0x17000111 RID: 273
|
|
// (get) Token: 0x06000692 RID: 1682 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000111")]
|
|
[ReadOnly(true)]
|
|
public virtual DataColumn[] Columns
|
|
{
|
|
[Token(Token = "0x6000692")]
|
|
[Address(RVA = "0xA301A0", Offset = "0xA2F1A0", VA = "0x180A301A0", Slot = "19")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the child table of this constraint.</summary>
|
|
/// <returns>A <see cref="T:System.Data.DataTable" /> that is the child table in the constraint.</returns>
|
|
// Token: 0x17000112 RID: 274
|
|
// (get) Token: 0x06000693 RID: 1683 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000112")]
|
|
[ReadOnly(true)]
|
|
public override DataTable Table
|
|
{
|
|
[Token(Token = "0x6000693")]
|
|
[Address(RVA = "0xA30240", Offset = "0xA2F240", VA = "0x180A30240", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000694 RID: 1684 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000694")]
|
|
[Address(RVA = "0xA2E0C0", Offset = "0xA2D0C0", VA = "0x180A2E0C0", Slot = "13")]
|
|
internal override void CheckCanAddToCollection(ConstraintCollection constraints)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000695 RID: 1685 RVA: 0x00003F5C File Offset: 0x0000215C
|
|
[Token(Token = "0x6000695")]
|
|
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "14")]
|
|
internal override bool CanBeRemovedFromCollection(ConstraintCollection constraints, bool fThrowException)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000696 RID: 1686 RVA: 0x00003F74 File Offset: 0x00002174
|
|
[Token(Token = "0x6000696")]
|
|
[Address(RVA = "0xA2FCD0", Offset = "0xA2ECD0", VA = "0x180A2FCD0")]
|
|
internal bool IsKeyNull(object[] values)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000697 RID: 1687 RVA: 0x00003F8C File Offset: 0x0000218C
|
|
[Token(Token = "0x6000697")]
|
|
[Address(RVA = "0xA2FAB0", Offset = "0xA2EAB0", VA = "0x180A2FAB0", Slot = "18")]
|
|
internal override bool IsConstraintViolated()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000698 RID: 1688 RVA: 0x00003FA4 File Offset: 0x000021A4
|
|
[Token(Token = "0x6000698")]
|
|
[Address(RVA = "0xA2CFC0", Offset = "0xA2BFC0", VA = "0x180A2CFC0", Slot = "10")]
|
|
internal override bool CanEnableConstraint()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000699 RID: 1689 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000699")]
|
|
[Address(RVA = "0xA2D160", Offset = "0xA2C160", VA = "0x180A2D160")]
|
|
internal void CascadeCommit(DataRow row)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069A RID: 1690 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069A")]
|
|
[Address(RVA = "0xA2D2F0", Offset = "0xA2C2F0", VA = "0x180A2D2F0")]
|
|
internal void CascadeDelete(DataRow row)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069B RID: 1691 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069B")]
|
|
[Address(RVA = "0xA2D8C0", Offset = "0xA2C8C0", VA = "0x180A2D8C0")]
|
|
internal void CascadeRollback(DataRow row)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069C RID: 1692 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069C")]
|
|
[Address(RVA = "0xA2DB20", Offset = "0xA2CB20", VA = "0x180A2DB20")]
|
|
internal void CascadeUpdate(DataRow row)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069D RID: 1693 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069D")]
|
|
[Address(RVA = "0xA2E230", Offset = "0xA2D230", VA = "0x180A2E230")]
|
|
internal void CheckCanClearParentTable(DataTable table)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069E RID: 1694 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069E")]
|
|
[Address(RVA = "0xA2E350", Offset = "0xA2D350", VA = "0x180A2E350")]
|
|
internal void CheckCanRemoveParentRow(DataRow row)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600069F RID: 1695 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600069F")]
|
|
[Address(RVA = "0xA2E420", Offset = "0xA2D420", VA = "0x180A2E420")]
|
|
internal void CheckCascade(DataRow row, DataRowAction action)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060006A0 RID: 1696 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x60006A0")]
|
|
[Address(RVA = "0xA2E6A0", Offset = "0xA2D6A0", VA = "0x180A2E6A0", Slot = "15")]
|
|
internal override void CheckConstraint(DataRow childRow, DataRowAction action)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060006A1 RID: 1697 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x60006A1")]
|
|
[Address(RVA = "0xA2FD90", Offset = "0xA2ED90", VA = "0x180A2FD90")]
|
|
private void NonVirtualCheckState()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060006A2 RID: 1698 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x60006A2")]
|
|
[Address(RVA = "0xA2E9C0", Offset = "0xA2D9C0", VA = "0x180A2E9C0", Slot = "16")]
|
|
internal override void CheckState()
|
|
{
|
|
}
|
|
|
|
/// <summary>Indicates the action that should take place across this constraint when <see cref="M:System.Data.DataTable.AcceptChanges" /> is invoked.</summary>
|
|
/// <returns>One of the <see cref="T:System.Data.AcceptRejectRule" /> values. Possible values include <see langword="None" />, and <see langword="Cascade" />. The default is <see langword="None" />.</returns>
|
|
// Token: 0x17000113 RID: 275
|
|
// (get) Token: 0x060006A3 RID: 1699 RVA: 0x00003FBC File Offset: 0x000021BC
|
|
// (set) Token: 0x060006A4 RID: 1700 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x17000113")]
|
|
[DefaultValue(null)]
|
|
public virtual AcceptRejectRule AcceptRejectRule
|
|
{
|
|
[Token(Token = "0x60006A3")]
|
|
[Address(RVA = "0xA30160", Offset = "0xA2F160", VA = "0x180A30160", Slot = "20")]
|
|
get
|
|
{
|
|
return AcceptRejectRule.None;
|
|
}
|
|
[Token(Token = "0x60006A4")]
|
|
[Address(RVA = "0xA30280", Offset = "0xA2F280", VA = "0x180A30280", Slot = "21")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x060006A5 RID: 1701 RVA: 0x00003FD4 File Offset: 0x000021D4
|
|
[Token(Token = "0x60006A5")]
|
|
[Address(RVA = "0xA2F620", Offset = "0xA2E620", VA = "0x180A2F620", Slot = "9")]
|
|
internal override bool ContainsColumn(DataColumn column)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x060006A6 RID: 1702 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60006A6")]
|
|
[Address(RVA = "0xA2F0E0", Offset = "0xA2E0E0", VA = "0x180A2F0E0", Slot = "11")]
|
|
internal override Constraint Clone(DataSet destination)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060006A7 RID: 1703 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60006A7")]
|
|
[Address(RVA = "0xA2E9D0", Offset = "0xA2D9D0", VA = "0x180A2E9D0", Slot = "12")]
|
|
internal override Constraint Clone(DataSet destination, bool ignorNSforTableLookup)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060006A8 RID: 1704 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60006A8")]
|
|
[Address(RVA = "0xA2F100", Offset = "0xA2E100", VA = "0x180A2F100")]
|
|
internal ForeignKeyConstraint Clone(DataTable destination)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060006A9 RID: 1705 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x60006A9")]
|
|
[Address(RVA = "0xA2F670", Offset = "0xA2E670", VA = "0x180A2F670")]
|
|
private void Create(string relationName, DataColumn[] parentColumns, DataColumn[] childColumns)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the action that occurs across this constraint when a row is deleted.</summary>
|
|
/// <returns>One of the <see cref="T:System.Data.Rule" /> values. The default is <see langword="Cascade" />.</returns>
|
|
// Token: 0x17000114 RID: 276
|
|
// (get) Token: 0x060006AA RID: 1706 RVA: 0x00003FEC File Offset: 0x000021EC
|
|
// (set) Token: 0x060006AB RID: 1707 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x17000114")]
|
|
[Attribute(Name = "DefaultValueAttribute", RVA = "0x1070B0", Offset = "0x1064B0")]
|
|
public virtual Rule DeleteRule
|
|
{
|
|
[Token(Token = "0x60006AA")]
|
|
[Address(RVA = "0xA301C0", Offset = "0xA2F1C0", VA = "0x180A301C0", Slot = "22")]
|
|
get
|
|
{
|
|
return Rule.None;
|
|
}
|
|
[Token(Token = "0x60006AB")]
|
|
[Address(RVA = "0xA30300", Offset = "0xA2F300", VA = "0x180A30300", Slot = "23")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the current <see cref="T:System.Data.ForeignKeyConstraint" /> is identical to the specified object.</summary>
|
|
/// <param name="key">The object to which this <see cref="T:System.Data.ForeignKeyConstraint" /> is compared. Two <see cref="T:System.Data.ForeignKeyConstraint" /> are equal if they constrain the same columns.</param>
|
|
/// <returns>
|
|
/// <see langword="true" />, if the objects are identical; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060006AC RID: 1708 RVA: 0x00004004 File Offset: 0x00002204
|
|
[Token(Token = "0x60006AC")]
|
|
[Address(RVA = "0xA2F880", Offset = "0xA2E880", VA = "0x180A2F880", Slot = "0")]
|
|
public override bool Equals(object key)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets the hash code of this instance of the <see cref="T:System.Data.ForeignKeyConstraint" /> object.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x060006AD RID: 1709 RVA: 0x0000401C File Offset: 0x0000221C
|
|
[Token(Token = "0x60006AD")]
|
|
[Address(RVA = "0x4F9150", Offset = "0x4F8150", VA = "0x1804F9150", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>The parent columns of this constraint.</summary>
|
|
/// <returns>An array of <see cref="T:System.Data.DataColumn" /> objects that are the parent columns of the constraint.</returns>
|
|
// Token: 0x17000115 RID: 277
|
|
// (get) Token: 0x060006AE RID: 1710 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000115")]
|
|
[ReadOnly(true)]
|
|
public virtual DataColumn[] RelatedColumns
|
|
{
|
|
[Token(Token = "0x60006AE")]
|
|
[Address(RVA = "0xA30200", Offset = "0xA2F200", VA = "0x180A30200", Slot = "24")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000116 RID: 278
|
|
// (get) Token: 0x060006AF RID: 1711 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000116")]
|
|
internal DataColumn[] RelatedColumnsReference
|
|
{
|
|
[Token(Token = "0x60006AF")]
|
|
[Address(RVA = "0xA301E0", Offset = "0xA2F1E0", VA = "0x180A301E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000117 RID: 279
|
|
// (get) Token: 0x060006B0 RID: 1712 RVA: 0x00004034 File Offset: 0x00002234
|
|
[Token(Token = "0x17000117")]
|
|
internal DataKey ParentKey
|
|
{
|
|
[Token(Token = "0x60006B0")]
|
|
[Address(RVA = "0xA301E0", Offset = "0xA2F1E0", VA = "0x180A301E0")]
|
|
get
|
|
{
|
|
return default(DataKey);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060006B1 RID: 1713 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60006B1")]
|
|
[Address(RVA = "0xA2F9D0", Offset = "0xA2E9D0", VA = "0x180A2F9D0")]
|
|
internal DataRelation FindParentRelation()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the parent table of this constraint.</summary>
|
|
/// <returns>The parent <see cref="T:System.Data.DataTable" /> of this constraint.</returns>
|
|
// Token: 0x17000118 RID: 280
|
|
// (get) Token: 0x060006B2 RID: 1714 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000118")]
|
|
[ReadOnly(true)]
|
|
public virtual DataTable RelatedTable
|
|
{
|
|
[Token(Token = "0x60006B2")]
|
|
[Address(RVA = "0xA30220", Offset = "0xA2F220", VA = "0x180A30220", Slot = "25")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the action that occurs across this constraint on when a row is updated.</summary>
|
|
/// <returns>One of the <see cref="T:System.Data.Rule" /> values. The default is <see langword="Cascade" />.</returns>
|
|
// Token: 0x17000119 RID: 281
|
|
// (get) Token: 0x060006B3 RID: 1715 RVA: 0x0000404C File Offset: 0x0000224C
|
|
// (set) Token: 0x060006B4 RID: 1716 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x17000119")]
|
|
[Attribute(Name = "DefaultValueAttribute", RVA = "0x107730", Offset = "0x106B30")]
|
|
public virtual Rule UpdateRule
|
|
{
|
|
[Token(Token = "0x60006B3")]
|
|
[Address(RVA = "0xA30260", Offset = "0xA2F260", VA = "0x180A30260", Slot = "26")]
|
|
get
|
|
{
|
|
return Rule.None;
|
|
}
|
|
[Token(Token = "0x60006B4")]
|
|
[Address(RVA = "0xA30380", Offset = "0xA2F380", VA = "0x180A30380", Slot = "27")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000236 RID: 566
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000236")]
|
|
internal Rule _deleteRule;
|
|
|
|
// Token: 0x04000237 RID: 567
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4000237")]
|
|
internal Rule _updateRule;
|
|
|
|
// Token: 0x04000238 RID: 568
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000238")]
|
|
internal AcceptRejectRule _acceptRejectRule;
|
|
|
|
// Token: 0x04000239 RID: 569
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000239")]
|
|
private DataKey _childKey;
|
|
|
|
// Token: 0x0400023A RID: 570
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400023A")]
|
|
private DataKey _parentKey;
|
|
|
|
// Token: 0x0400023B RID: 571
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400023B")]
|
|
internal string _constraintName;
|
|
|
|
// Token: 0x0400023C RID: 572
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400023C")]
|
|
internal string[] _parentColumnNames;
|
|
|
|
// Token: 0x0400023D RID: 573
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400023D")]
|
|
internal string[] _childColumnNames;
|
|
|
|
// Token: 0x0400023E RID: 574
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400023E")]
|
|
internal string _parentTableName;
|
|
|
|
// Token: 0x0400023F RID: 575
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400023F")]
|
|
internal string _parentTableNamespace;
|
|
}
|
|
}
|