-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSqlBuilderTask.cs
More file actions
29 lines (26 loc) · 1.05 KB
/
SqlBuilderTask.cs
File metadata and controls
29 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Collections.Generic;
using System.Linq.Expressions;
using Poco.Sql.NetCore.Interfaces;
namespace Poco.Sql.NetCore
{
class SqlBuilderTask
{
internal enum QueryTypeEnum { Select, Insert, Update, Delete, StoredProcedure, CreateTable, AlterTable, DropTable, TruncateTable, PreDefined, QueryByName, SelectIdentity, SelectScopeIdentity }
public QueryTypeEnum QueryType { get; set; }
public string TableName { get; set; }
public string QueryName { get; set; }
public List<string> WhereStrings { get; set; }
public List<Expression> WhereExpressions { get; set; }
public object PrimaryKeyValue { get; set; }
public string SqlResult { get; set; }
public string WhereCondition { get; set; }
public IPocoSqlMapping Map { get; set; }
public bool EndWithSemicolon { get; set; }
public SqlBuilderTask()
{
WhereStrings = new List<string>();
WhereExpressions = new List<Expression>();
EndWithSemicolon = true;
}
}
}