public static void GetInfoModifiedAll(string connectionString) { using (var db = new CustomDatabaseWithDtkFix(connectionString)) { //It is expected that the .ToUnixTimeSeconds() will return the same value as IdSrv because it performs a UTC conversion before converting to seconds. var svc = GetUserAccountServiceModifiedAll(db); var account = svc.GetByUsername("bob"); if (account != null) { //When fetching the account the first time, the lastUpdated DateTime Kind is reported as "Unspecified" Console.WriteLine("From FixedAll: {0} - {1}", account.LastUpdated.ToString("s"), account.LastUpdated.Kind); } } }
private static CustomUserAccountServiceWithDtkFix GetUserAccountServiceModifiedAll(CustomDatabaseWithDtkFix database) { var repo = new CustomUserAccountRepositoryWithDtkFix(database); var svc = new CustomUserAccountServiceWithDtkFix(CustomConfigWithDtkFix.Config, repo); return(svc); }
private static CustomUserAccountServiceWithDtkFix GetUserAccountServiceModifiedAll(CustomDatabaseWithDtkFix database) { var repo = new CustomUserAccountRepositoryWithDtkFix(database); var svc = new CustomUserAccountServiceWithDtkFix(CustomConfigWithDtkFix.Config, repo); return svc; }