Beispiel #1
0
 private static void GetIntegrationRecordVars(DonutScript script, StringBuilder fBuilder)
 {
     foreach (var integration in script.GetDatasetMembers())
     {
         var iName  = integration.GetPropertyName();
         var record = $"var rec{iName} = this.Context.{iName}.Records;";
         fBuilder.AppendLine(record);
     }
 }
Beispiel #2
0
        private string GetDataSetMembers(DonutScript dscript)
        {
            var dtSources = dscript.GetDatasetMembers();
            var content   = new StringBuilder();

            foreach (var source in dtSources)
            {
                var sourceProperty = $"[SourceFromIntegration(\"{source.Name}\")]\n" +
                                     "public DataSet<BsonDocument> " + source.GetPropertyName() + " { get; set; }";
                content.AppendLine(sourceProperty);
            }
            return(content.ToString());
        }