Esempio n. 1
0
        public void DeleteGeomon(string Name)
        {
            DBGeomon dbg = new DBGeomon();

            Console.WriteLine();
            Console.WriteLine("DeleteGeomon() " + GetExecutionThreadTime());
            dbg.DeleteGeomon(Name);
        }
Esempio n. 2
0
        // public Geomon ReadGeomon(string Name)
        // {
        //     DBGeomon dbg = new DBGeomon();
        //    return dbg.ReadGeomon(Name);
        // }

        public void UpdateGeomon(string Name, int Rarity, string Type, string Image, int Evo)
        {
            DBGeomon dbg = new DBGeomon();

            Console.WriteLine();
            Console.WriteLine("UpdateGeomon() " + GetExecutionThreadTime());
            dbg.UpdateGeomon(Name, Rarity, Type, Image, Evo);
        }
Esempio n. 3
0
        public DataSet Geomon(string Name)
        {
            DBGeomon dbc = new DBGeomon();
            DataSet  ds  = dbc.Geomon(Name);

            Console.WriteLine();
            Console.WriteLine("Geomon() " + GetExecutionThreadTime());
            return(ds);
        }
Esempio n. 4
0
        public Stream LocalCollection(String Username)
        {
            DBGeomon dbg = new DBGeomon();
            DataSet  ds  = dbg.LocalCollection(Username);

            string jsonString = string.Empty;

            jsonString = JsonConvert.SerializeObject(ds);

            Console.WriteLine();
            Console.WriteLine("LocalCollection() " + GetExecutionThreadTime());

            WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8";
            return(new MemoryStream(Encoding.UTF8.GetBytes(jsonString)));
        }