File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,27 @@ namespace NRedisStack.Search
2
2
{
3
3
public class FieldName
4
4
{
5
- private readonly string fieldName ;
6
- private string ? alias ;
5
+ public string Name { get ; }
6
+ public string ? Alias { get ; private set ; }
7
7
8
8
public FieldName ( string name ) : this ( name , null ) { }
9
9
10
10
public FieldName ( string name , string ? attribute )
11
11
{
12
- this . fieldName = name ;
13
- this . alias = attribute ;
12
+ this . Name = name ;
13
+ this . Alias = attribute ;
14
14
}
15
15
16
16
public int AddCommandArguments ( List < object > args )
17
17
{
18
- args . Add ( fieldName ) ;
19
- if ( alias == null )
18
+ args . Add ( Name ) ;
19
+ if ( Alias is null )
20
20
{
21
21
return 1 ;
22
22
}
23
23
24
24
args . Add ( "AS" ) ;
25
- args . Add ( alias ) ;
25
+ args . Add ( Alias ) ;
26
26
return 3 ;
27
27
}
28
28
@@ -33,7 +33,7 @@ public static FieldName Of(string name)
33
33
34
34
public FieldName As ( string attribute )
35
35
{
36
- this . alias = attribute ;
36
+ this . Alias = attribute ;
37
37
return this ;
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments