Пример #1
0
        public void AssetClassificationContructionTest()
        {
            Debt s;
            AssetClassification ac;

            try
            {
                using (var db = new FGABusinessComponent.BusinessComponent.FGAContext("PREPROD", compiledModel))
                {
                    s = new Debt(ISIN: "AC0000000001", FinancialInstrumentName: "ClassificationSecurity 1", MaturityDate: new DateTime(2013, 1, 1), interestCoupon: new InterestCalculation(new PercentageRate(2.365), new FrequencyCode(1)));
                    db.Debts.Add(s);
                    db.SaveChanges();


                    ac = new AssetClassification("EXEMPLE");
                    ac.Classification1 = "CLASSIF1";
                    ac.Classification2 = "CLASSIF2";
                    ac.Classification3 = "CLASSIF3";
                    ac.Classification4 = "CLASSIF4";

                    s.Add(ac);

                    db.SaveChanges();
                }
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e);
                throw e;
            }
        }
Пример #2
0
        /// <summary>
        /// Creates an instance of the FineFundamental class
        /// </summary>
        public FineFundamental()
        {
            DataType = MarketDataType.Auxiliary;

            CompanyReference    = new CompanyReference();
            SecurityReference   = new SecurityReference();
            FinancialStatements = new FinancialStatements();
            EarningReports      = new EarningReports();
            OperationRatios     = new OperationRatios();
            EarningRatios       = new EarningRatios();
            ValuationRatios     = new ValuationRatios();
            CompanyProfile      = new CompanyProfile();
            AssetClassification = new AssetClassification();
        }
Пример #3
0
        public static AssetClassification LookupAssetClassification(FGAContext db, string Isin, string Classification)
        {
            AssetClassification classif = db.AssetClassifications.Where <AssetClassification>(t => (t.ISINId == Isin && t.Source == Classification)).FirstOrDefault <AssetClassification>();

            return(classif);
        }
Пример #4
0
 public void Remove(ref AssetClassification c)
 {
     this.AssetClassification.Remove(c);
 }
Пример #5
0
 // different classification of the asset
 public void Add(AssetClassification c)
 {
     c.AssetId = this.Id;
     c.ISINId  = this.ISINId;
     this.AssetClassification.Add(c);
 }