CaseManagerAll Method |
Namespace: Law.EdaIntegration.Case
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 */