Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
        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);
                }
            }
        }
Beispiel #3
0
        private static CustomUserAccountServiceWithDtkFix GetUserAccountServiceModifiedAll(CustomDatabaseWithDtkFix database)
        {
            var repo = new CustomUserAccountRepositoryWithDtkFix(database);
            var svc  = new CustomUserAccountServiceWithDtkFix(CustomConfigWithDtkFix.Config, repo);

            return(svc);
        }
Beispiel #4
0
 private static CustomUserAccountServiceWithDtkFix GetUserAccountServiceModifiedAll(CustomDatabaseWithDtkFix database)
 {
     var repo = new CustomUserAccountRepositoryWithDtkFix(database);
     var svc = new CustomUserAccountServiceWithDtkFix(CustomConfigWithDtkFix.Config, repo);
     return svc;
 }