Click or drag to resize

CaseManagerAll Method

Retrieves a list of all the cases in Early Data Analyzer

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public IEnumerable<CaseListing> All()

Return Value

Type: IEnumerableCaseListing
A list of Cases
Examples
The following example demonstrates retrieving the list of cases from Early Data Analyzer and printing each case name to the system console.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

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

        Console.WriteLine("Name                            Client                     Description");
        Console.WriteLine("------------------------------  -------------------------  -------------------------");

        foreach (CaseListing tiCase in edaIntegration.Cases.All())
        {
            Console.WriteLine(
                "{0}  {1}  {2}",
                tiCase.Name.Substring(0, tiCase.Name.Length > 30 ? 30 : tiCase.Name.Length).PadRight(30),
                tiCase.Client.Substring(0, tiCase.Client.Length > 30 ? 30 : tiCase.Client.Length).PadRight(30),
                tiCase.Description.Substring(0, tiCase.Description.Length > 30 ? 30 : tiCase.Description.Length).PadRight(30)
            );
        }
    }
}
/*
This example produces the following results:
   Name                            Client                     Description
   ------------------------------  -------------------------  -------------------------
   Case 1                          Client 123                 The first case
   Case 2                          Client 456                 The second case
   Case 3                          Client 123                 The third case
 */
See Also