This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2024 Nicolas A. Nowinski ([email protected]) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
RunDirectly(); | |
RunIndirectly(); | |
var sw = new Stopwatch(); | |
sw.Start(); | |
for (int i = 0; i < 100; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace nicknow.Logging | |
{ | |
static class NonSandboxedExceptionLogging | |
{ | |
///From the example at http://stackoverflow.com/a/12827271/394978 | |
/// <summary> | |
/// This utility method can be used for retrieving extra details from exception objects. Cannot be used in code running in the Dynamics CRM Sandbox | |
/// </summary> | |
/// <param name="e">Exception.</param> | |
/// <param name="indent">Optional parameter. String used for text indent.</param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See end of file for Copyright and MIT License. | |
using System; | |
using Microsoft.Xrm.Sdk; | |
namespace ThinkCrm.Helper | |
{ | |
public static class CrmHelperExtensions | |
{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fetch count="50" > | |
<entity name="opportunity" > | |
<attribute name="name" /> | |
<link-entity name="principalobjectaccess" from="objectid" to="opportunityid" link-type="inner" alias="poa" > | |
<attribute name="objectid" alias="objectid" /> | |
<link-entity name="team" from="teamid" to="principalid" link-type="inner" > | |
<link-entity name="teamtemplate" from="teamtemplateid" to="teamtemplateid" > | |
<attribute name="teamtemplatename" /> | |
</link-entity> | |
<link-entity name="teammembership" from="teamid" to="teamid" link-type="inner" intersect="true" > |