Click or drag to resize

Creating a new case

Demonstrates

How to create a new case using the Integration Library

Example

This example creates a new case.

C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        // Initialize the environment
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        // Create the case
        // Note that the returned case has additional values filled in from the
        // creation process such as its id and date created
        Case edaCase = edaIntegration.Cases.Create(CaseProcessingType.EDA, @"My New Case");

        // Display some basic information about the new case
        Console.WriteLine("Id: " + edaCase.Name);
        Console.WriteLine("Name: " + edaCase.Name);
        Console.WriteLine("Directory: " + edaCase.CaseDirectory);
    }
}
Example Output
Output
Id: 0504c9ad-bb89-445a-a2f4-045cfb459db2
Name: My New Case
Directory: \\NetworkDrive\EdAnalyzer\Home\cases\My New Case
See Also