public DataSourceViewModel Build(DataSource dataSource)
 {
     return new DataSourceViewModel()
       {
     Id = dataSource.Id,
     CShartClassName = dataSource.CSharpClassName
       };
 }
Example #2
0
        private CachedDataSource CacheDataSource(Culture culture, DataSource dataSource)
        {
            CachedDataSource cachedDataSource = new CachedDataSource();

              cachedDataSource.DataSourceId = dataSource.Id;
              cachedDataSource.CSharpClassName = dataSource.CSharpClassName;
              cachedDataSource.Parameters = dataSource.Parameters;
              cachedDataSource.Code = dataSource.Code;
              return cachedDataSource;
        }