+++ /dev/null
-<linker>
- <assembly fullname="System.Data.Common">
- <type fullname="System.Data.ColumnTypeConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.ConstraintConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.ConstraintConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.DataTableTypeConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.DefaultValueTypeConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.PrimaryKeyTypeConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.RelationshipConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.Common.DataColumnMapping/DataColumnMappingConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- <type fullname="System.Data.Common.DataTableMapping/DataTableMappingConverter">
- <!-- Instantiated via reflection -->
- <method name=".ctor" />
- </type>
- </assembly>
-</linker>
<Compile Include="System\Data\SQLTypes\SQLBytes.cs" />
<Compile Include="System\Data\ProviderBase\DataReaderContainer.cs" />
<Compile Include="System\Data\ProviderBase\SchemaMapping.cs" />
+ <Compile Include="$(CommonPath)\System\Runtime\CompilerServices\PreserveDependencyAttribute.cs">
+ <Link>Common\System\Runtime\CompilerServices\PreserveDependencyAttribute.cs</Link>
+ </Compile>
</ItemGroup>
<ItemGroup>
<Reference Include="System.Collections" />
[TypeConverter(typeof(ColumnTypeConverter))]
public Type DataType
{
+ [PreserveDependency(".ctor", "System.Data.ColumnTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
get { return _dataType; }
+ [PreserveDependency(".ctor", "System.Data.ColumnTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
set
{
if (_dataType != value)
[TypeConverter(typeof(DefaultValueTypeConverter))]
public object DefaultValue
{
+ [PreserveDependency(".ctor", "System.Data.DefaultValueTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
get
{
Debug.Assert(_defaultValue != null, "It should not have been set to null.");
return _defaultValue;
}
+ [PreserveDependency(".ctor", "System.Data.DefaultValueTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
set
{
DataCommonEventSource.Log.Trace("<ds.DataColumn.set_DefaultValue|API> {0}", ObjectID);
[TypeConverter(typeof(PrimaryKeyTypeConverter))]
public DataColumn[] PrimaryKey
{
+ [PreserveDependency(".ctor", "System.Data.PrimaryKeyTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
get
{
UniqueConstraint primayKeyConstraint = _primaryKey;
}
return Array.Empty<DataColumn>();
}
+ [PreserveDependency(".ctor", "System.Data.DefaultValueTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
set
{
UniqueConstraint key = null;
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
+using System.Diagnostics;
using System.Globalization;
+using System.Runtime.CompilerServices;
using System.Text;
namespace System.Data
[RefreshProperties(RefreshProperties.All)]
public DataTable Table
{
+ [PreserveDependency(".ctor", "System.Data.DataTableTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
get { return _table; }
+ [PreserveDependency(".ctor", "System.Data.DataTableTypeConverter")] // TODO: Remove when https://github.com/mono/linker/issues/800 is fixed
set
{
DataCommonEventSource.Log.Trace("<ds.DataView.set_Table|API> {0}, {1}", ObjectID, (value != null) ? value.ObjectID : 0);