Exemple #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;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the CoinTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCoinTypes(CoinType coinType)
 {
     base.AddObject("CoinTypes", coinType);
 }
 /// <summary>
 /// Create a new CoinType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static CoinType CreateCoinType(global::System.Int32 id, global::System.String name)
 {
     CoinType coinType = new CoinType();
     coinType.Id = id;
     coinType.Name = name;
     return coinType;
 }