摘要: 在Dynamics系统中创建Lookup字段时想一个字段创建多个关系是可以用下面工具进行创建。 1、首先下载 Xrm tool Box 工具,没有的可以进行下载:https://www.xrmtoolbox.com/ 2、在工具中搜索 3、进入到Polymorphic Lookup Manager 阅读全文
posted @ 2025-04-17 09:46 Mr.htb 阅读(18) 评论(0) 推荐(0)
摘要: 当移除某个安全角色给到用户后触发插件添加用户到指定团队或相关事务 1、注册插件步骤 Message:Disassociate,Entity:none; 2、插件代码如下: /// <summary> /// action:SystemUserRolesAssociate /// <para>Enti 阅读全文
posted @ 2025-04-17 09:34 Mr.htb 阅读(7) 评论(0) 推荐(0)
摘要: 实际工作中可能会遇到此类需求,话不多说下面直接上干货。 1、Message:Associate Primary Entity:none Secondary Entity:none 2、在 Plugin Registration中这样配置就可以在User分配安全角色时触发插件中的逻辑。 在C# 代码中 阅读全文
posted @ 2025-04-17 09:32 Mr.htb 阅读(9) 评论(0) 推荐(0)
摘要: 要引用这个jquery.cookie.js 阅读全文
posted @ 2018-01-18 19:12 Mr.htb 阅读(103) 评论(0) 推荐(0)
摘要: public class stuController : Controller { BlogDBEntities db = new BlogDBEntities(); string Key = "1"; // GET: stu public ActionResult Index() { //获取re 阅读全文
posted @ 2018-01-18 19:09 Mr.htb 阅读(96) 评论(0) 推荐(0)
摘要: [HttpPost] public ActionResult Login() { //写入cookies方式1 HttpCookie cookie = new HttpCookie("tempToken"); cookie.Value = "123456"; cookie.Expires = Dat 阅读全文
posted @ 2018-01-04 13:00 Mr.htb 阅读(151) 评论(0) 推荐(0)
摘要: [EnableCors("*","*","*")] public class BlogApiController : ApiController { baweiBlogsEntities db = new baweiBlogsEntities(); public int PageSize = 5; 阅读全文
posted @ 2017-12-19 08:42 Mr.htb 阅读(112) 评论(0) 推荐(0)
摘要: 首先顶一个类来放几个字段类里面有一个虚方法可以重写这个方法 再顶一个类继承上面的那个类 里面有重写的方法 最后才是工厂的方法 阅读全文
posted @ 2017-12-07 13:36 Mr.htb 阅读(122) 评论(0) 推荐(0)
摘要: Web.config配置是如何配置 控制器里面的操作 还有就是小黑本的配置 cd C:\Windows\Microsoft.NET\Framework\v2.0.50727 aspnet_regsql -S localhost -E -d RWWW -ed -t Options -et(注册缓存依赖 阅读全文
posted @ 2017-12-07 13:33 Mr.htb 阅读(120) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace DAL{ /// <summary> /// 数据访问类 阅读全文
posted @ 2017-12-01 10:53 Mr.htb 阅读(93) 评论(0) 推荐(0)