10 namespace Deveel.Data.Linq {
22 table =
new TemporaryTable(tableInfo);
24 var tempTable = (TemporaryTable) table;
25 tempTable.NewRow(
new[] {
31 tempTable.NewRow(
new[] {
38 tempTable.BuildIndexes();
43 IQueryable<Person> queryable = null;
44 Assert.DoesNotThrow(() => queryable = table.AsQueryable<
Person>());
45 Assert.IsNotNull(queryable);
48 Assert.DoesNotThrow(() => first = queryable.First());
49 Assert.IsNotNull(first);
50 Assert.AreEqual(
"Antonello", first.
FirstName);
51 Assert.AreEqual(
"Provenzano", first.
LastName);
52 Assert.AreEqual(1, first.
Id);
53 Assert.AreEqual(0, first.
Age);
61 public string FirstName {
get; set; }
64 public string LastName {
get; set; }
67 public int Age {
get; set; }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
The single COLUMN of a table in a database, handling the form of data that can be stored in a cell...
static DataObject Null(SqlType type)
Describes the name of an object within a database.
static DataObject String(string s)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DataObject TinyInt(byte value)
static NumericType TinyInt(int size)
static DataObject BigInt(long value)
static StringType String()