摘要: 1.cast cast(@CurStepNo as nvarchar(100)) 2.convert convert(nvarchar(100),@CurStepNo) 3.日期格式 CONVERT(varchar(100), GETDATE(), 20) --年月日十分秒 4.换行 中间加 +ch 阅读全文
posted @ 2021-04-08 15:55 马玲 阅读(426) 评论(0) 推荐(0) 编辑
摘要: [Chloe.Annotations.TableAttribute("MN_FloDrawing")] //上面一行代码表示,查询时对应的表名 public class Vw_MN_FloDrawing:BindableBase { private int _id; /// <summary> // 阅读全文
posted @ 2021-04-08 15:51 马玲 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1.更新个别字段 context.UpdateOnly(empEntity, "EmpStatus", "UpdateEmpID", "UpdateTime"); 2.更新个别字段 int test1 = context.Update<PJ_Infor>(t=>t.ID == inforProjec 阅读全文
posted @ 2021-04-08 15:47 马玲 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 1.界面绑定了DataContex,按钮也可以点击,但是跑不到ViewModel中的命令 解答:Locator注册中分两步:第一注册,第二定义实例化ViewModel变量。以上问题忘记了第二步,其实DataContex绑定的是实例化对象而非类名。 2.给集合的某个字段赋值,赋不上去 解答:定义的变量 阅读全文
posted @ 2021-03-19 17:32 马玲 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.出现”添加服务器配置失败,请检查是否有写入权限或文件是否存在“的错误 解决:到C:\Program Files (x86)\Maticsoft设置Codematic2文件夹的控制权限 2.自定义动软生成的代码 <#@ template language="c#" HostSpecific="Tr 阅读全文
posted @ 2021-03-16 10:05 马玲 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 问题呈现 问题解决 阅读全文
posted @ 2021-03-16 09:14 马玲 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1.Linq中自带的计算方法:Sql. 。 2.GroupBy 用法 OcSheetNameInfo = OcFlowCheckTableNameConfig .GroupBy(flowBase => flowBase.FunctionTableName) .Select(S => new Flow 阅读全文
posted @ 2021-03-09 14:52 马玲 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 问题描述: cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel=' 阅读全文
posted @ 2021-03-03 16:41 马玲 阅读(474) 评论(0) 推荐(0) 编辑
摘要: public static bool IsNumber(string s) { if (string.IsNullOrWhiteSpace(s)) return false; const string pattern = "^[0-9]*$"; Regex rx = new Regex(patter 阅读全文
posted @ 2021-02-26 16:16 马玲 阅读(826) 评论(0) 推荐(0) 编辑
摘要: xmlns:sys="clr-namespace:System;assembly=mscorlib"<Grid.Resources> <Style TargetType="ToolTip"> <Style.Triggers> <Trigger Property="Content" Value="{x 阅读全文
posted @ 2021-02-25 11:03 马玲 阅读(1758) 评论(0) 推荐(0) 编辑