Ejemplo n.º 1
0
        public virtual IDeleteable <T> Deleteable <T>() where T : class, new()
        {
            InitMppingInfo <T>();
            DeleteableProvider <T> result = this.CreateDeleteable <T>();

            return(result);
        }
Ejemplo n.º 2
0
        public virtual IDeleteable <T> Deleteable <T>() where T : class, new()
        {
            InitMppingInfo <T>();
            DeleteableProvider <T> reval = base.CreateDeleteable <T>();

            return(reval);
        }
Ejemplo n.º 3
0
        protected DeleteableProvider <T> CreateDeleteable <T>() where T : class, new()
        {
            var reval      = new DeleteableProvider <T>();
            var sqlBuilder = InstanceFactory.GetSqlbuilder(this.CurrentConnectionConfig);;

            reval.Context                              = this.Context;
            reval.SqlBuilder                           = sqlBuilder;
            sqlBuilder.DeleteBuilder                   = reval.DeleteBuilder = InstanceFactory.GetDeleteBuilder(this.CurrentConnectionConfig);
            sqlBuilder.DeleteBuilder.Builder           = sqlBuilder;
            sqlBuilder.DeleteBuilder.LambdaExpressions = InstanceFactory.GetLambdaExpressions(this.CurrentConnectionConfig);
            sqlBuilder.Context                         = reval.SqlBuilder.DeleteBuilder.Context = this.Context;
            return(reval);
        }