169 lines
7.8 KiB
C#
169 lines
7.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides metadata for a property representing a data field. This class cannot be inherited.</summary>
|
|
// Token: 0x02000106 RID: 262
|
|
[Token(Token = "0x2000106")]
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
public sealed class DataObjectFieldAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DataObjectFieldAttribute" /> class and indicates whether the field is the primary key for the data row.</summary>
|
|
/// <param name="primaryKey">
|
|
/// <see langword="true" /> to indicate that the field is in the primary key of the data row; otherwise, <see langword="false" />.</param>
|
|
// Token: 0x0600066A RID: 1642 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600066A")]
|
|
[Address(RVA = "0xB9B1C0", Offset = "0xB9A1C0", VA = "0x180B9B1C0")]
|
|
public DataObjectFieldAttribute(bool primaryKey)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DataObjectFieldAttribute" /> class and indicates whether the field is the primary key for the data row, and whether the field is a database identity field.</summary>
|
|
/// <param name="primaryKey">
|
|
/// <see langword="true" /> to indicate that the field is in the primary key of the data row; otherwise, <see langword="false" />.</param>
|
|
/// <param name="isIdentity">
|
|
/// <see langword="true" /> to indicate that the field is an identity field that uniquely identifies the data row; otherwise, <see langword="false" />.</param>
|
|
// Token: 0x0600066B RID: 1643 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600066B")]
|
|
[Address(RVA = "0xB9B170", Offset = "0xB9A170", VA = "0x180B9B170")]
|
|
public DataObjectFieldAttribute(bool primaryKey, bool isIdentity)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DataObjectFieldAttribute" /> class and indicates whether the field is the primary key for the data row, whether the field is a database identity field, and whether the field can be null.</summary>
|
|
/// <param name="primaryKey">
|
|
/// <see langword="true" /> to indicate that the field is in the primary key of the data row; otherwise, <see langword="false" />.</param>
|
|
/// <param name="isIdentity">
|
|
/// <see langword="true" /> to indicate that the field is an identity field that uniquely identifies the data row; otherwise, <see langword="false" />.</param>
|
|
/// <param name="isNullable">
|
|
/// <see langword="true" /> to indicate that the field can be null in the data store; otherwise, <see langword="false" />.</param>
|
|
// Token: 0x0600066C RID: 1644 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600066C")]
|
|
[Address(RVA = "0xB9B0D0", Offset = "0xB9A0D0", VA = "0x180B9B0D0")]
|
|
public DataObjectFieldAttribute(bool primaryKey, bool isIdentity, bool isNullable)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DataObjectFieldAttribute" /> class and indicates whether the field is the primary key for the data row, whether it is a database identity field, and whether it can be null and sets the length of the field.</summary>
|
|
/// <param name="primaryKey">
|
|
/// <see langword="true" /> to indicate that the field is in the primary key of the data row; otherwise, <see langword="false" />.</param>
|
|
/// <param name="isIdentity">
|
|
/// <see langword="true" /> to indicate that the field is an identity field that uniquely identifies the data row; otherwise, <see langword="false" />.</param>
|
|
/// <param name="isNullable">
|
|
/// <see langword="true" /> to indicate that the field can be null in the data store; otherwise, <see langword="false" />.</param>
|
|
/// <param name="length">The length of the field in bytes.</param>
|
|
// Token: 0x0600066D RID: 1645 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600066D")]
|
|
[Address(RVA = "0xB9B120", Offset = "0xB9A120", VA = "0x180B9B120")]
|
|
public DataObjectFieldAttribute(bool primaryKey, bool isIdentity, bool isNullable, int length)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether a property represents an identity field in the underlying data.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the property represents an identity field in the underlying data; otherwise, <see langword="false" />. The default value is <see langword="false" />.</returns>
|
|
// Token: 0x17000121 RID: 289
|
|
// (get) Token: 0x0600066E RID: 1646 RVA: 0x00004800 File Offset: 0x00002A00
|
|
[Token(Token = "0x17000121")]
|
|
public bool IsIdentity
|
|
{
|
|
[Token(Token = "0x600066E")]
|
|
[Address(RVA = "0x498E20", Offset = "0x497E20", VA = "0x180498E20")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether a property represents a field that can be null in the underlying data store.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the property represents a field that can be null in the underlying data store; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000122 RID: 290
|
|
// (get) Token: 0x0600066F RID: 1647 RVA: 0x00004818 File Offset: 0x00002A18
|
|
[Token(Token = "0x17000122")]
|
|
public bool IsNullable
|
|
{
|
|
[Token(Token = "0x600066F")]
|
|
[Address(RVA = "0x635090", Offset = "0x634090", VA = "0x180635090")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the length of the property in bytes.</summary>
|
|
/// <returns>The length of the property in bytes, or -1 if not set.</returns>
|
|
// Token: 0x17000123 RID: 291
|
|
// (get) Token: 0x06000670 RID: 1648 RVA: 0x00004830 File Offset: 0x00002A30
|
|
[Token(Token = "0x17000123")]
|
|
public int Length
|
|
{
|
|
[Token(Token = "0x6000670")]
|
|
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether a property is in the primary key in the underlying data.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the property is in the primary key of the data store; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000124 RID: 292
|
|
// (get) Token: 0x06000671 RID: 1649 RVA: 0x00004848 File Offset: 0x00002A48
|
|
[Token(Token = "0x17000124")]
|
|
public bool PrimaryKey
|
|
{
|
|
[Token(Token = "0x6000671")]
|
|
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether this instance is equal to a specified object.</summary>
|
|
/// <param name="obj">An object to compare with this instance of <see cref="T:System.ComponentModel.DataObjectFieldAttribute" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this instance is the same as the instance specified by the <paramref name="obj" /> parameter; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000672 RID: 1650 RVA: 0x00004860 File Offset: 0x00002A60
|
|
[Token(Token = "0x6000672")]
|
|
[Address(RVA = "0xB9B030", Offset = "0xB9A030", VA = "0x180B9B030", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x06000673 RID: 1651 RVA: 0x00004878 File Offset: 0x00002A78
|
|
[Token(Token = "0x6000673")]
|
|
[Address(RVA = "0xB8D310", Offset = "0xB8C310", VA = "0x180B8D310", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04000495 RID: 1173
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000495")]
|
|
private bool _primaryKey;
|
|
|
|
// Token: 0x04000496 RID: 1174
|
|
[FieldOffset(Offset = "0x11")]
|
|
[Token(Token = "0x4000496")]
|
|
private bool _isIdentity;
|
|
|
|
// Token: 0x04000497 RID: 1175
|
|
[FieldOffset(Offset = "0x12")]
|
|
[Token(Token = "0x4000497")]
|
|
private bool _isNullable;
|
|
|
|
// Token: 0x04000498 RID: 1176
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4000498")]
|
|
private int _length;
|
|
}
|
|
}
|