MySql.Data.Entity.Tests.Toy.CreateToy C# (CSharp) Method

CreateToy() public static method

Create a new Toy object.
public static CreateToy ( global id, global name, global minAge ) : Toy
id global Initial value of the Id property.
name global Initial value of the Name property.
minAge global Initial value of the MinAge property.
return Toy
        public static Toy CreateToy(global::System.Int32 id, global::System.String name, global::System.Int32 minAge)
        {
            Toy toy = new Toy();
            toy.Id = id;
            toy.Name = name;
            toy.MinAge = minAge;
            return toy;
        }