Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 815ad50

Browse files
committed
remove newline
1 parent 0d53c55 commit 815ad50

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

examples/EdgeDB.Examples.ExampleApp/Examples/QueryBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public class LinkPerson
2323
public LinkPerson? BestFriend { get; set; }
2424
}
2525

26-
2726
public async Task ExecuteAsync(EdgeDBClient client)
2827
{
2928
await QueryBuilderDemo(client);
@@ -119,7 +118,7 @@ private static async Task QueryBuilderDemo(EdgeDBClient client)
119118
.Else(q =>
120119
q.Update(old => new LinkPerson
121120
{
122-
Name = old!.Name!.ToUpper()
121+
Name = EdgeQL.ToUpper(old.Name)
123122
})
124123
)
125124
.BuildAsync(client))

src/EdgeDB.Net.QueryBuilder/QueryBuilder.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static IUpdateQuery<TType> Update<TType>(Expression<Func<TType, TType>> u
4545
public static IDeleteQuery<TType> Delete<TType>()
4646
=> new QueryBuilder<TType>().Delete;
4747
}
48-
48+
4949
/// <summary>
5050
/// Represents a query builder used to build queries against <typeparamref name="TType"/>.
5151
/// </summary>
@@ -121,9 +121,12 @@ internal BuiltQuery InternalBuild(bool includeGlobalsInQuery = true)
121121
{
122122
var with = new WithNode(new NodeBuilder(new WithContext(typeof(TType))
123123
{
124-
Values = _queryGlobals
125-
}, _queryGlobals, null, _queryVariables));
126-
with.SchemaInfo = _schemaInfo;
124+
Values = _queryGlobals,
125+
}, _queryGlobals, null, _queryVariables))
126+
{
127+
SchemaInfo = _schemaInfo
128+
};
129+
127130
with.Visit();
128131
nodes = nodes.Prepend(with).ToList();
129132
}

0 commit comments

Comments
 (0)