Ejemplo n.º 1
0
        public static IList<Coin> GetCoinData()
        {
            CoinType coinType1 = new CoinType();
            coinType1.Id = 1;
            coinType1.Name = "cointype_name";

            CoinLevel coinLevel1 = new CoinLevel();
            coinLevel1.Id = 1;
            coinLevel1.Name = "coinlevel_name";

            IList<Coin> coins = new List<Coin>();

            Coin coin1 = new Coin();
            coin1.Id = Guid.NewGuid();
            coin1.Name = "coin1_name";
            coin1.Description = "coin1_description";
            coin1.AppraisalInstitute = "coin1_appraisalInstitute";
            coin1.AppraisalScore = "75";
            coin1.Memo = "coin1_memo";
            coin1.Image = "coin1_image";

            //coin1.CoinType = coinType1;
            //coin1.CoinLevel = coinLevel1;

            coins.Add(coin1);

            return coins;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CoinLevels EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCoinLevels(CoinLevel coinLevel)
 {
     base.AddObject("CoinLevels", coinLevel);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new CoinLevel object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static CoinLevel CreateCoinLevel(global::System.Int32 id, global::System.String name)
 {
     CoinLevel coinLevel = new CoinLevel();
     coinLevel.Id = id;
     coinLevel.Name = name;
     return coinLevel;
 }