Agile.Net 组件式开发平台 - 脚本管理组件

脚本管理组件用于管理系统查询脚本,由于数据查询的复杂性和可变性,平台规范要求"查询数据"使用建立在脚本管理器中的SQL语句。新增、更新、删除数据采用数据访问支持库API。

示例如下: 

首先在脚本管理器中定义查询脚本,例如”2001”号脚本,调用方法ScriptById(int Id) 示例如下:

Product product = Context.ScriptById(2001).QuerySingle<Product>();

或者

Product product = Context.ScriptById(2001).Parameter("ProductId", 3).QuerySingle<Product>();

或者

List<Product> products = Context.ScriptById(2001).QueryMany<Product>();

 

查询脚本的定义支持以下三种方式:

风格一:

SELECT ID, Code, Name FROM USER WHERE ID = @ID

风格二:

SELECT ID, Code, Name FROM USER WHERE ID = {ID}

风格三:

Declare @ID int, @Name nvarchar(50)
Set @ID = {ID}
Set @Name = {Name}
--------------------------------------------------------
SELECT ID, Code, Name FROM USER WHERE ID = @ID AND Name = @Name

 

 

 

转载于:https://www.cnblogs.com/MuNet/p/5756326.html

Agile.net Code Protection - Powerful .NET Code Protection & Obfuscation Solution Agile.NET code protection solution offers better protection for your .NET code by providing a protection that goes beyond standard obfuscation methods. Our advanced code protection technology delivers a layered protection approach that combines our patented code virtualization technology, code encryption, obfuscation, and anti-reverse engineering countermeasures embedded into existing application code. Unbreakable Code Protection Agile.net uses a patented technology that transforms MSIL code into virtual opcodes that will only be understood by a secure virtual machine. The virtual machine processes the virtual opcodes directly, emulating the original code behavior without transforming the code back to its original form. Breaking the protection becomes NP-complete problem, thus making Agile.net the only obfuscator that guarantees your code can't be broken! Next Generation Obfuscator Obfuscates every aspect of your code, including class and method names, managed resources, user strings, methods implementation, system and library calls. Agile.net Protects more of your application than any other obfuscator because it knows what is safe to change and what needs to be left alone. Nevertheless, it gives you full control of the obfuscation process. Works with all .NET Technologies Join our rapidly growing customer base consisting of thousands of customers using Agile.net every day to protect their software running on WinRT, WP7, WP8, .NET 2.0 and up, Compact Framework 2.0 and up, ASP. NET, Silverlight 2.0 and up (XAML), WPF (BAML), XNA, ClickOnce and more
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值