06 2024 档案
摘要:public class MQConnection { private static IConnection Connection; 配置: public static IConnection GetConnection() { if (Connection == null) { var facto
阅读全文
摘要:MethodBase currentMethod = MethodBase.GetCurrentMethod(); string _namespace = currentMethod.DeclaringType.Namespace + ".Processor."; Assembly assembly
阅读全文
摘要:// 使用Polly实现重试策略 var policyRetryCount = 0; var retryPolicy = Policy.Handle<Exception>() // 定义触发重试的异常类型 .Retry(3, (exception, retryCount) => // 最多重试3次
阅读全文
摘要:使用的地方: 假如你有一个名为rgvProcessDtl的DataGridView控件 DataTable dt = (DataTable)rgvProcessDtl.DataSource; foreach (DataRow row in dt) { OG_ProcessGuidDtl dtl =
阅读全文
摘要:sql server中xml数据类型解析出有用的数据 如:SO_NO='5P1611035',Batch_NO='70898746 ' select * from( SELECT a.SO_NO,Batch_NO FROM Cut_Plan_Auto_Task a ) t outer apply(
阅读全文
摘要:在SQLServer 的使用过程中,发现几个很有用,但不太常用(或细节不太清楚)的函数(存储过程) 如下: isnumeric: 返回值 1 | 0,判断是否是数字类型: 数值类型包括(int、bigint、smallint、tinyint、numeric、money、smallmoney、floa
阅读全文