public DataSourceViewModel Build(DataSource dataSource)
 {
     return new DataSourceViewModel()
       {
     Id = dataSource.Id,
     CShartClassName = dataSource.CSharpClassName
       };
 }
Exemplo n.º 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;
        }