File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk.Sample Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
// See https://aka.ms/new-console-template for more information
2
2
3
+ using Optimizely . Graph . Source . Sdk . Model ;
3
4
using Optimizely . Graph . Source . Sdk . Repository ;
4
5
using Optimizely . Graph . Source . Sdk . Sample ;
5
6
6
7
var repository = new DefaultGraphSourceRepository ( "https://cg.optimizely.com" , "" , "" ) ;
7
8
8
9
repository . Configure < ExampleData > ( )
9
- . Field ( x => x . FirstName , Optimizely . Graph . Source . Sdk . Model . IndexingType . Searchable )
10
- . Field ( x => x . LastName , Optimizely . Graph . Source . Sdk . Model . IndexingType . Searchable )
11
- . Field ( x => x . Age , Optimizely . Graph . Source . Sdk . Model . IndexingType . Querable ) ;
10
+ . Field ( x => x . FirstName , IndexingType . Searchable )
11
+ . Field ( x => x . LastName , IndexingType . Searchable )
12
+ . Field ( x => x . Age , IndexingType . Querable ) ;
12
13
13
14
await repository . SaveTypeAsync < ExampleData > ( ) ;
14
15
You can’t perform that action at this time.
0 commit comments