File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,27 @@ namespace NRedisStack.Search
22{
33 public class FieldName
44 {
5- private readonly string fieldName ;
6- private string ? alias ;
5+ public string Name { get ; }
6+ public string ? Alias { get ; protected set ; }
77
88 public FieldName ( string name ) : this ( name , null ) { }
99
1010 public FieldName ( string name , string ? attribute )
1111 {
12- this . fieldName = name ;
13- this . alias = attribute ;
12+ this . Name = name ;
13+ this . Alias = attribute ;
1414 }
1515
1616 public int AddCommandArguments ( List < object > args )
1717 {
18- args . Add ( fieldName ) ;
19- if ( alias == null )
18+ args . Add ( Name ) ;
19+ if ( Alias is null )
2020 {
2121 return 1 ;
2222 }
2323
2424 args . Add ( "AS" ) ;
25- args . Add ( alias ) ;
25+ args . Add ( Alias ) ;
2626 return 3 ;
2727 }
2828
@@ -33,7 +33,7 @@ public static FieldName Of(string name)
3333
3434 public FieldName As ( string attribute )
3535 {
36- this . alias = attribute ;
36+ this . Alias = attribute ;
3737 return this ;
3838 }
3939 }
You can’t perform that action at this time.
0 commit comments