mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* TestDataColumn.cs: added detection of foreign key columns.
* FooWithDefaults.cs: added foreign key columns
* FooDisplayName.cs, FooDisplayNameEmptyName.cs,
FooSettableDefaults.cs: added
2009-06-10 Marek Habersack <[email protected]>
* MetaTable.cs: fixed DisplayName implementation.
Implemented GetPrimaryKeyString, GetQuery.
2009-06-10 Marek Habersack <[email protected]>
* System.Web.DynamicData_test.dll.sources: added
Common/FooDisplayName.cs
Common/FooDisplayNameEmptyName.cs
Common/FooSettableDefaults.cs
2009-06-10 Marek Habersack <[email protected]>
* MetaTableTest.cs: added more table contexts.
Added tests for: Attributes, Columns, DataContextPropertyName,
DataContextType, DisplayName, EntityType, ForeignKeyColumnNames
(doesn't work on .NET), GetPrimaryKeyString, GetQuery,
HasPrimaryKey,
2009-06-09 Marek Habersack <[email protected]>
* MetaTableTest.cs: added two more tables for various kinds of
tests (in fixture setup).
More tests for GetActionPath.
Tests for GetPrimaryKeyValues, DisplayColumn, Attributes,
GetDisplayString, GetColumn, TryGetColumn
2009-06-09 Marek Habersack <[email protected]>
* Baz.cs, BazNoStrings.cs, BazNoStringsNoPrimary.cs,
FooDisplayColumnAttribute.cs, FooEmpty.cs,
FooEmptyDisplayColumnAttribute.cs,
FooInvalidDisplayColumnAttribute.cs, FooWithToString.cs,
TestDataColumn.cs, TestDataContainer.cs, TestDataTable.cs: added
2009-06-09 Marek Habersack <[email protected]>
* MetaTable.cs: implemented more overloads of GetActionPath.
Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
Attributes, DisplayColumn, GetDisplayString.
2009-06-09 Marek Habersack <[email protected]>
* MetaTableTest.cs: added two more tables for various kinds of
tests (in fixture setup).
More tests for GetActionPath.
Tests for GetPrimaryKeyValues.
2009-06-09 Marek Habersack <[email protected]>
* MetaTable.cs: implemented more overloads of GetActionPath.
Implemented GetPrimaryKeyValues.
Implemented GetActionPathFromRoutes.
2009-06-09 Marek Habersack <[email protected]>
* Utils.cs: added two BuildActionName methods to make building
action paths for testing more compact.
* FooNoPrimaryColumns.cs, FooNoDefaultsWithPrimaryKey.cs: added
2009-06-09 Marek Habersack <[email protected]>
* System.Web.DynamicData_test.dll.sources: added
Common/FooNoDefaultsWithPrimaryKey.cs
Common/FooNoPrimaryColumns.cs
2009-06-08 Marek Habersack <[email protected]>
* Utils.cs: added.
Moved GetModel here from MetaModelTest.cs
Added RegisterContext methods.
* FooWithDefaultsContainer.cs,
FooWithDefaultsColumn.cs,FooWithDefaultsTable.cs,
FooWithDefaults.cs: added
2009-06-08 Marek Habersack <[email protected]>
* MetaTableTest.cs: added.
svn path=/trunk/mcs/; revision=135844
27 lines
710 B
C#
27 lines
710 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MonoTests.Common
|
|
{
|
|
// Parameters: display column, sort column, whether sort is descending
|
|
[DisplayColumn ("NoSuchColumn", "NoSuchColumn", false)]
|
|
class FooInvalidDisplayColumnAttribute
|
|
{
|
|
public string Column1 { get; set; }
|
|
public int Column2 { get; set; }
|
|
public string PrimaryKeyColumn1 { get; set; }
|
|
public int PrimaryKeyColumn2 { get; set; }
|
|
public bool PrimaryKeyColumn3 { get; set; }
|
|
|
|
public FooInvalidDisplayColumnAttribute ()
|
|
{
|
|
Column1 = "hello";
|
|
Column2 = 123;
|
|
PrimaryKeyColumn1 = "primary key value";
|
|
PrimaryKeyColumn2 = 456;
|
|
PrimaryKeyColumn3 = true;
|
|
}
|
|
}
|
|
}
|