Skip to content

Commit a1c5d73

Browse files
committed
Optimize Query Generation for mysql & changing names for the template variables
1 parent 9549d36 commit a1c5d73

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

QueryTemplates.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ public class QueryTemplates : IQueryTemplates
1010
{
1111
#region Public Properties
1212
/// <summary>
13-
/// Gets the template for a SELECT query.
13+
/// Gets the template for a SELECT template.
1414
/// </summary>
15-
public IFluidTemplate SELECT_QUERY => _selectQueryTemplate.Value;
15+
public IFluidTemplate SelectTemplate => _selectQueryTemplate.Value;
1616

1717
/// <summary>
18-
/// Gets the template for an INSERT query.
18+
/// Gets the template for an INSERT template.
1919
/// </summary>
20-
public IFluidTemplate INSERT_QUERY => _insertQueryTemplate.Value;
20+
public IFluidTemplate InsertTemplate => _insertQueryTemplate.Value;
2121

2222
/// <summary>
23-
/// Gets the template for an UPDATE query.
23+
/// Gets the template for an UPDATE template.
2424
/// </summary>
25-
public IFluidTemplate UPDATE_QUERY => _updateQueryTemplate.Value;
25+
public IFluidTemplate UpdateTemplate => _updateQueryTemplate.Value;
2626

2727
/// <summary>
28-
/// Gets the template for a DELETE query.
28+
/// Gets the template for a DELETE template.
2929
/// </summary>
30-
public IFluidTemplate DELETE_QUERY => _deleteQueryTemplate.Value;
30+
public IFluidTemplate DeleteTemplate => _deleteQueryTemplate.Value;
3131

3232
/// <summary>
33-
/// Gets the template for a COMMENT query.
33+
/// Gets the template for a COMMENT template.
3434
/// </summary>
35-
public IFluidTemplate COMMENT_QUERY => _commentQueryTemplate.Value;
35+
public IFluidTemplate CommentTemplate => _commentQueryTemplate.Value;
3636

3737

3838
#endregion
3939

4040
#region Private Properties
4141

42-
private static Lazy<IFluidTemplate> _selectQueryTemplate = new Lazy<IFluidTemplate>(CreateSelectQueryTemplate);
43-
private static Lazy<IFluidTemplate> _insertQueryTemplate = new Lazy<IFluidTemplate>(CreateInsertQueryTemplate);
44-
private readonly Lazy<IFluidTemplate> _updateQueryTemplate = new Lazy<IFluidTemplate>(CreateUpdateQueryTemplate);
45-
private readonly Lazy<IFluidTemplate> _deleteQueryTemplate = new Lazy<IFluidTemplate>(CreateDeleteQueryTemplate);
46-
private readonly Lazy<IFluidTemplate> _commentQueryTemplate = new Lazy<IFluidTemplate>(CreateCommentQueryTemplate);
42+
private static readonly Lazy<IFluidTemplate> _selectQueryTemplate = new Lazy<IFluidTemplate>(CreateSelectQueryTemplate);
43+
private static readonly Lazy<IFluidTemplate> _insertQueryTemplate = new Lazy<IFluidTemplate>(CreateInsertQueryTemplate);
44+
private static readonly Lazy<IFluidTemplate> _updateQueryTemplate = new Lazy<IFluidTemplate>(CreateUpdateQueryTemplate);
45+
private static readonly Lazy<IFluidTemplate> _deleteQueryTemplate = new Lazy<IFluidTemplate>(CreateDeleteQueryTemplate);
46+
private static readonly Lazy<IFluidTemplate> _commentQueryTemplate = new Lazy<IFluidTemplate>(CreateCommentQueryTemplate);
4747
private static readonly FluidParser parser = new FluidParser();
4848
#endregion
4949

0 commit comments

Comments
 (0)