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; } }
/// <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(); }
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); }
public void Remove(ref AssetClassification c) { this.AssetClassification.Remove(c); }
// different classification of the asset public void Add(AssetClassification c) { c.AssetId = this.Id; c.ISINId = this.ISINId; this.AssetClassification.Add(c); }