Exemple #1
0
        public static void GetInfoModifiedAtr(string connectionString)
        {
            using (var db = new CustomDatabaseWithAttrFix(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     = GetUserAccountServiceModifiedAtr(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 FixedAtr: {0} - {1}", account.LastUpdated.ToString("s"),
                                      account.LastUpdated.Kind);
                }
            }
        }
Exemple #2
0
        public static void GetInfoModifiedAtr(string connectionString)
        {
            using (var db = new CustomDatabaseWithAttrFix(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 = GetUserAccountServiceModifiedAtr(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 FixedAtr: {0} - {1}", account.LastUpdated.ToString("s"),
                        account.LastUpdated.Kind);
                }
            }
        }
Exemple #3
0
        private static CustomUserAccountServiceWithAttrFix GetUserAccountServiceModifiedAtr(CustomDatabaseWithAttrFix database)
        {
            var repo = new CustomUserAccountRepositoryWithAttrFix(database);
            var svc  = new CustomUserAccountServiceWithAttrFix(CustomConfigWithAttrFix.Config, repo);

            return(svc);
        }
Exemple #4
0
 private static CustomUserAccountServiceWithAttrFix GetUserAccountServiceModifiedAtr(CustomDatabaseWithAttrFix database)
 {
     var repo = new CustomUserAccountRepositoryWithAttrFix(database);
     var svc = new CustomUserAccountServiceWithAttrFix(CustomConfigWithAttrFix.Config, repo);
     return svc;
 }