Skip to content

Commit 7d3fad9

Browse files
resolving schema types
implementing method for resolving schema property types
1 parent 4fd0747 commit 7d3fad9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

DataSource.DataProviders.SQLite/SQLiteDataProvider/SQLiteVirtualDataSourceDataProvider.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,23 @@ public int IndexOfKey(object[] key)
685685
{
686686
return -1;
687687
}
688+
689+
public DataSourceSchemaPropertyType ResolveSchemaPropertyType(string propertyPath)
690+
{
691+
var propertiesInPath = propertyPath.Split('.');
692+
if (propertiesInPath.Length == 1 && this.ActualSchema != null)
693+
{
694+
for (int i = 0; i < this.ActualSchema.PropertyNames.Length; i++)
695+
{
696+
if (this.ActualSchema.PropertyNames[i] == propertiesInPath[0])
697+
{
698+
return this.ActualSchema.PropertyTypes[i];
699+
}
700+
}
701+
}
702+
703+
return DataSourceSchemaPropertyType.ObjectValue;
704+
}
688705
}
689706

690707

0 commit comments

Comments
 (0)