DataEngine for .NET Standard | ComponentOne
In This Topic
    C1DataEngine Samples
    In This Topic

    Please be advised that this ComponentOne software tool is accompanied by various sample projects and/or demos, which may make use of other ComponentOne development tools included with ComponentOne Studio.

    Please refer to pre-installed product samples through the following path:

    Documents\ComponentOne Samples\ServiceComponents\DataEngine\CS

    The following samples are available in the C1DataEngine library:

    C# Samples

    Sample Description
    DataEngineDesigner

    This sample implements a visual designer for C1DataEngine queries using Razor Pages. It uses the RuntimeQuery class provided by the C1.DataEngine.Core.Api package to allow end-users to create and execute ad-hoc C1DataEngine queries. The designer UI builds a JSON representation of a query and sends it to the QueryData page using the POST method. The OnPostAsync handler receives an equivalent RuntimeQuery argument produced by JSON serialization.

    PetLicenses

    This sample demonstrates how to use C1DataEngine in a console app to import and analyze JSON data using the Workspace class. It uses the .NET Core version of C1DataEngine to analyze a dataset of pet licenses for the city of Seattle. The sample also uses a join query to combine two distinct data sources: the main license table and a secondary table that maps zip codes to county and city names.

    RazorPetLicenses

    This sample shows how to implement a Razor Pages app that visualizes C1DataEngine queries. The sample is derived from the PetLicenses console app, which uses the .NET Core version of C1DataEngine to analyze a dataset of pet licenses for the city of Seattle. This sample also uses the C1.AspNetCore.MVC package for data visualization.

    DataEngineMultiTarget

    This sample shows how to use C1DataEngine in various combinations of frameworks/runtimes. This sample uses the multi-target version of C1DataEngine to demonstrate its usage in a variety of application contexts (console, Windows Forms, WPF) and target frameworks (netstandard2.0, net452).

    DataEngineCollectionSample This sample shows a simple way to visualize a query using C1DataEngineCollection assembly.