예제 #1
0
파일: Test.cs 프로젝트: kbdavis07/DEA
        public static void Guild()
        {
            var db = new DEAContext();

            var    NewGuild = new guild();
            Random randNum  = new Random();
            var    Num1     = randNum.Next(100000000, 999999999);
            var    Num2     = randNum.Next(100000000, 999999999);
            ulong  GuildId  = (ulong)(Num1 + Num2);

            NewGuild.id = GuildId;
            db.guilds.Add(NewGuild);
            db.SaveChanges();
            Console.WriteLine("Saved New Guild");
            var NewGuildId = NewGuild.id;

            Console.WriteLine(NewGuildId);
            var ResultsGuild = GuildRepository.FetchGuildByIdAsync(999999999123456787);

            Console.WriteLine(ResultsGuild.Result.id);
        }