public void DeleteGeomon(string Name) { DBGeomon dbg = new DBGeomon(); Console.WriteLine(); Console.WriteLine("DeleteGeomon() " + GetExecutionThreadTime()); dbg.DeleteGeomon(Name); }
// 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); }
public DataSet Geomon(string Name) { DBGeomon dbc = new DBGeomon(); DataSet ds = dbc.Geomon(Name); Console.WriteLine(); Console.WriteLine("Geomon() " + GetExecutionThreadTime()); return(ds); }
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))); }