public SQLServerDbContextRepositoryDataStore(RequestContext context)
 {
     this._context = context;
     this._output = context.Zeus.Output;
     this._script = context.ScriptSettings;
     this._util = context.Utility;
 }
 public SQLServerLinqToSqlDataStore(RequestContext context)
 {
     this._output = context.Zeus.Output;
     this._script = context.ScriptSettings;
     this._util = context.Utility;
     this._context = context;
 }
 /// <summary>
 /// This class renders the T4 controller template to use the ViewData classes
 /// that communicates with either a library service or WCF services.
 /// </summary>
 /// <param name="context">RequestContext object</param>
 /// <param name="useWebServices">Whether this template uses WCF of a service library</param>
 /// <param name="useUIDtos">Is this application using DTOs?</param>
 public KingsMvcServiceLibraryCodeTemplates(RequestContext context, bool useWebServices, bool useUIDtos)
     : base(context.Zeus.Output)
 {
     this._useUIDtos = useUIDtos;
     this._useWebServices = useWebServices;
     this._context = context;
 }
예제 #4
0
 public DefaultDataStoreFactory(RequestContext context)
 {
     this._context = context;
     this._output = context.Zeus.Output;
     this._util = context.Utility;
     this._script = context.ScriptSettings;
 }
 public ORMFrameworkCompositionTests()
 {
     _context = new RequestContext();
     _context.Zeus = new TempZeusContext();
     //_context.ScriptSettings = new GizmoBeach.Components.Tests.Context.ScriptSettings();
     _output = _context.Zeus.Output;
 }
예제 #6
0
        public void create_simple_property()
        {
            // Arrange
            MyMeta.ITable table = new TempTable()
            {
                Alias = "Customer"
            };

            MyMeta.IColumn c = new StringColumn(table)
            {
                Alias = "FirstName"
            };

            RequestContext context = new RequestContext();
            context.ScriptSettings = _script;
            context.Zeus = new TempZeusContext();
            context.Utility = new CommonUtility();

            // Act
            Condor.Core.Property prop = new RenderDataAnnotationsProperty(c, context);
            prop.Render();
            string expected = "public string FirstName { get; set; }\r\n";

            // Assert
            Assert.AreEqual(expected, context.Zeus.Output.text);
        }
 public WcfForeignKeyPropertiesDtos(MyMeta.ITable table, RequestContext context)
 {
     this._context = context;
     this._table = table;
     this._script = context.ScriptSettings;
     this.output = context.Zeus.Output;
 }
예제 #8
0
 public AspNetMvcUILayerObjects(RequestContext context, IAutoMapperFramework autoMapperFramework)
     : base(context.Zeus.Output)
 {
     this._autoMapperFramework = autoMapperFramework;
     this._context = context;
     this._dialog = context.Dialog;
     this._database = context.Database;
 }
예제 #9
0
파일: Property.cs 프로젝트: kahanu/CondorXE
 public Property(MyMeta.IColumn column, RequestContext context)
 {
     this._context = context;
     this._table = column.Table;
     this._column = column;
     this._output = context.Zeus.Output;
     this._script = context.ScriptSettings;
 }
예제 #10
0
 public LinqToSqlOrmFramework(IDataStore dataStore, RequestContext context)
     : base(context.Zeus.Output)
 {
     this._dataStore = dataStore;
     this._context = context;
     this._database = context.Database;
     this._dialog = context.Dialog;
 }
예제 #11
0
 public RenderDataObjectsAutoMapper(RequestContext context, IMapperConfiguration mapperConfiguration,
     IMapperExtensions mapperExtensions)
     : base(context.Zeus.Output)
 {
     this._mapperExtensions = mapperExtensions;
     this._mapperConfiguration = mapperConfiguration;
     this._context = context;
 }
 public EntityFrameworkDbContextRepositoryOrmFrameworkBase(IDataStore dataStore, RequestContext context, EFCriteria criteria)
     : base(context.Zeus.Output)
 {
     this._criteria = criteria;
     this._dataStore = dataStore;
     this._context = context;
     this._database = context.Database;
     this._dialog = context.Dialog;
 }
예제 #13
0
 public EntitySpacesOrmFramework(IDataStore dataStore, RequestContext context, IAutoMapperFramework autoMapperFramework)
     : base(context.Zeus.Output)
 {
     this._dataStore = dataStore;
     this._context = context;
     this._database = context.Database;
     this._dialog = context.Dialog;
     this._commonGenerators = new CommonGenerators(context);
     this._autoMapperFramework = autoMapperFramework;
 }
예제 #14
0
        public EntityFrameworkOrmFramework(IDataStore dataStore, RequestContext context, IAutoMapperFramework autoMapperFramework)
            : base(context.Zeus.Output)
        {
            if (dataStore == null)
                throw new ApplicationException("EntityFrameworkOrmFramework dataStore");

            this._autoMapperFramework = autoMapperFramework;
            this._dataStore = dataStore;
            this._context = context;
            this._database = context.Database;
            this._dialog = context.Dialog;
        }
예제 #15
0
        public void dataannotationswriter_test()
        {
            // Arrange
            IColumns columns = new CategoryColumns();
            columns.Add(new IdentityColumn());
            columns.Add(new DateTimeColumn());
            columns.Add(new CategoryNameColumn());
            columns.Add(new RowversionColumn());

            ITable table = new CategoryTable(columns, null);

            RequestContext context = new RequestContext();
            context.Zeus = new TempZeusContext();

            // Act
            ICodeWriter writer = new DataAnnotationsWriter(context, table);
            writer.Write();
            string actual = writer.Read;

            Console.WriteLine(actual);
        }
예제 #16
0
        public void TestMethod1()
        {
            // Arrange
            ITable table = null;
            IColumns columns = new CategoryColumns();
            columns.Add(new IdentityColumn(table));
            columns.Add(new DateTimeColumn(table));
            columns.Add(new CategoryNameColumn(table));

            table = new CategoryTable(columns, null);

            RequestContext context = new RequestContext();
            context.Zeus = new TempZeusContext();
            //context.ScriptSettings = new ScriptSettings(null, null, null, null);

            Condor.Core.Property prop = null;
            foreach (IColumn c in table.Columns)
            {
                prop = new BusinessObjectsPropertyRenderDataAnnotationsForDbContext(c, context);
                prop.Render();
            }
        }
예제 #17
0
        public DataObjectsFactory(string dataPatternName, string ormFrameworkName, string dataStoreName, IValidator validator, RequestContext requestContext)
        {
            if (string.IsNullOrEmpty(dataPatternName))
                throw new ApplicationException("dataPattern");

            if (string.IsNullOrEmpty(ormFrameworkName))
                throw new ApplicationException("ormFramework");

            if (string.IsNullOrEmpty(dataStoreName))
                throw new ApplicationException("dataStore");

            if (requestContext.Database == null)
                throw new ApplicationException("database");

            if (validator == null)
                throw new ApplicationException("validator");

            this._context = requestContext;
            this._validator = validator;
            this._dataStoreName = dataStoreName;
            this._ormFrameworkName = ormFrameworkName;
            this._dataPatternName = dataPatternName;
        }
 public UnityMVC4ServiceReferenceIoCProviderForDbContext(RequestContext context)
     : base(context.Zeus.Output)
 {
     this._context = context;
     this._database = _context.Database;
 }
 public EntityFrameworkWithAutoMapperOrmFramework(IDataStore dataStore, RequestContext context)
     : base(context.Zeus.Output)
 {
     this._dataStore = dataStore;
     this._context = context;
 }
예제 #20
0
 public IoCFactory(RequestContext context)
 {
     this._context = context;
 }
예제 #21
0
 public EntityClassBase(RequestContext context)
 {
     this._context = context;
     this._output = context.Zeus.Output;
 }
예제 #22
0
 public WebApiServiceLayerObjects(RequestContext context)
     : base(context.Zeus.Output)
 {
     this._context = context;
 }
예제 #23
0
 public PropertyDecoratorBase(MyMeta.IColumn column, RequestContext context)
     : base(column, context)
 {
 }
예제 #24
0
 public EntitySpacesOrmFramework(IDataStore dataStore, RequestContext context)
     : this(dataStore, context, null)
 {
 }
예제 #25
0
 public RepositoryPattern(IORMFramework ormFramework, RequestContext context)
 {
     this._ormFramework = ormFramework;
 }
예제 #26
0
 public WebFormsUILayerObjects(RequestContext context)
     : base(context.Zeus.Output)
 {
 }
예제 #27
0
 public TrackingEntityClass(RequestContext context)
     : base(context)
 {
     this._context = context;
     this._output = context.Zeus.Output;
 }
 public EntLibValidationServiceLayerObjects(RequestContext context)
     : base(context.Zeus.Output)
 {
     this._context = context;
 }
 public AspNetMvc5UILayerObjectsWithTrackingForDbContext(RequestContext context)
     : base(context.Zeus.Output)
 {
     this._context = context;
 }
 public WebApiUILayerObjectsForDbContext(RequestContext context)
     : base(context.Zeus.Output)
 {
     this._context = context;
 }