2013-03-31 00:56:34 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
namespace Marr.Data.QGen.Dialects
|
|
|
|
{
|
|
|
|
public class SqliteDialect : Dialect
|
|
|
|
{
|
|
|
|
public override string IdentityQuery
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return "SELECT last_insert_rowid();";
|
|
|
|
}
|
|
|
|
}
|
2013-05-28 02:35:53 +03:00
|
|
|
|
|
|
|
public override string StartsWithFormat
|
|
|
|
{
|
|
|
|
get { return "({0} LIKE {1} || '%')"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string EndsWithFormat
|
|
|
|
{
|
|
|
|
get { return "({0} LIKE '%' || {1})"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string ContainsFormat
|
|
|
|
{
|
|
|
|
get { return "({0} LIKE '%' || {1} || '%')"; }
|
|
|
|
}
|
2013-03-31 00:56:34 +03:00
|
|
|
}
|
|
|
|
}
|