Select improvements and alias parsing.
Insert evolved.
This commit is contained in:
@@ -38,7 +38,7 @@ namespace DynamORM.Tests.Select
|
||||
/// <summary>Test typed ORM.</summary>
|
||||
/// <typeparam name="T">Type to test.</typeparam>
|
||||
[TestFixture(typeof(users))]
|
||||
public class TypedAccessTests<T> : TestsBase
|
||||
public class TypedAccessTests<T> : TestsBase where T : class
|
||||
{
|
||||
/// <summary>Setup test parameters.</summary>
|
||||
[TestFixtureSetUp]
|
||||
@@ -97,6 +97,18 @@ namespace DynamORM.Tests.Select
|
||||
Assert.AreEqual(200, list.Count);
|
||||
}
|
||||
|
||||
/// <summary>Test load all rows into mapped list alternate way.</summary>
|
||||
[Test]
|
||||
public virtual void TestTypedGetAll3()
|
||||
{
|
||||
var list = GetTestBuilder()
|
||||
.From(x => x(typeof(T)).As(x.t))
|
||||
.Execute<T>()
|
||||
.ToList();
|
||||
|
||||
Assert.AreEqual(200, list.Count);
|
||||
}
|
||||
|
||||
/// <summary>Test unknown op.</summary>
|
||||
[Test]
|
||||
public virtual void TestTypedUnknownOperation()
|
||||
|
||||
Reference in New Issue
Block a user