36127889-funny-cartoon-images.jpg

 

public class DroidX
{
  public string Id { get; set; }
  public string Name { get; set; }
}

public class Query
{
  [GraphQLMetadata("hero")]
  public Droid GetHero()
  {
    return new Droid { Id = "123", Name = "R2-D2" };
  }
}

var schema = Schema.For(@"
  type Droid {
    id: String
    name: String
  }

  type Query {
    hero: Droid
  }
", _ => {
    _.Types.Include<Query>();
});

var result = schema.Execute(_ =>
{
  _.Query = "{ hero { id name } }";
});

 

 

other

 

<select id="fontColor" class="dropdown">
<option value="Black">Black</option>
<option value="DarkGrey">DarkGrey</option>
<option value="SlateGray">SlateGray</option>
<option value="DarkBlue">DarkBlue</option>
<option value="DarkCyan">DarkCyan</option>
<option value="DarkGreen">DarkGreen</option>
<option value="DarkRed">DarkRed</option>
<option value="Gray">Gray</option>
<option value="Blue">Blue</option>
</select>
 
 
// #########################################################################
$(function () {
kendo.ui.progress($("body"), true);
 
 

 public static class MD5Helper    {

        public static string MD5Hash(string file)

        {

            try

            {

                using (var md5 = MD5.Create())

                {

                    using (var stream = new BufferedStream(File.OpenRead(file), 1200000))

                    {

                        return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "");

                    }

                }

 

 

 

Comments

Post a comment