数据框架,基础类集 HelloData

码农软件 · 软件分类 · ORM/持久层框架 · 2019-09-24 21:27:05

软件介绍

v1.2版本发布,修复了动态试图生成的bug,修复了无法正常分页的错误;将基础操作类单独分离出来.....

详情请访问:https://github.com/xiaose1205/HelloData


自定义的sql书写模式,与数据库交互更加便捷,有生成实体类的t4模版,sqlite内存数据库(效率比较高) 多个数据库同时操作(不区分数据库累心) url重写 多区域语言(页面自动生成,无需更多的代码)  redis分布式缓存 webcache缓存 。框架可以扩展。异常捕捉,调试更加方便

 /// 
        /// 自定义视图
        /// 

        public cms_user viewtestModel()
        {
            using (SelectAction action = new SelectAction(""))
            {
                action.SqlClomns = "_cms_user.*,_cms_manager.name as  managername";
                {
                    //添加视图的关联关系
                    List field = new List();
                    field.Add(new WhereField() { FiledName = "mangerid", Condition = ConditionEnum.And, Value = "id" });
                    action.AddJoin(ViewJoinEnum.leftjoin, "cms_user", "cms_manager", field);
                }

                action.SqlWhere(cms_user.Columns.username, "admin");
                action.SqlWhere(cms_user.Columns.password, "123456");
                PageList lists= action.QueryPage(1);
                return null;
            }
        }

        /// 
        /// 删除多个数据
        /// 

        /// 
        /// 
        internal int DeleteMuilt(string ids)
        {
            //第一个数据库的操作
            using (DeleteAction delete = new DeleteAction(Entity, 0))
            {
                delete.SqlWhere(cms_user.Columns.id, "1,2,3,4,5", RelationEnum.In);
                delete.Excute();
                return delete.ReturnCode;
            }
            //第二个数据库的操作
            using (DeleteAction delete = new DeleteAction(Entity, 1))
            {
                delete.SqlWhere(cms_user.Columns.id, ids, RelationEnum.In);
                delete.Excute();
                return delete.ReturnCode;
            }
        }

本文地址:https://codercto.com/soft/d/15330.html

数学拾遗

数学拾遗

加黑蒂 / 清华大学出版社 / 2004-8 / 49.00元

Beginning graduate students in mathematics and other quantitative subjects are expected to have a daunting breadth of mathematical knowledge ,but few have such a backgroud .This book will help stedent......一起来看看 《数学拾遗》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具