-
版本:1.1.0-alpha1
在WPF中使用MVVM模式
关键代码:
View:
`
`
ViewModel:
```
public class ViewModel : VmBase
{
public RelayCommand TestCommand => new RelayCommand(async o =>await Command());
…
-
```c#
[Transactional]
public Task InsertTest()
{
return Task.Delay(TimeSpan.FromSeconds(10)).ContinueWith(t =>
_repoSong.InsertAsync(new Song()));
}
public class TransactionalAtt…
-
```c#
public class NeedCacheAttribute:Rougamo.MoAttribute,IDisposable
{
public void Dispose()
{
_scope.Dispose();
}
private ILifetimeScope _scope { get; set; }
}
```
…
-
本篇文章内容引导,如何在 asp.net core 项目中使用特性(注解) 的方式管理事务。
> UnitOfWorkManager 只可以管理 Repository 仓储对象的事务,直接 fsql.Insert\() 是不行的!!但是可以用 repository.Orm.Insert\!!repository.Orm 是特殊实现的 IFreeSql,与 当前事务保持一致。
支持六种传…
-
你好!
新的版本实现了对异常抛出的控制,目前使用体验非常好,再次感谢!
我在考虑授权问题时,想通过添加Attribute的方式对指定的方法进行授权认证,满足授权认证则进行实际方法的调用,如果不满足则禁止方法的调用,对于有返回值的方法直接返回对应类型的默认值。虽然使用Castle的方法代理也能实现,但感觉还是使用你的Rougamo方式更加简单方便。不知这种方法拦截能否实现?
…
-
我通过反汇编查看织入的代码大致结构如下:
// 创建切面的实例
try
{
// 嵌入的方法代码
}
catch(Exception exception)
{
methodContext.Exception = exception;
((IMo)methodExceptionAttribute).OnException(methodContext);
throw; …
-
试了一下继承下的切面动作:
1. 父类
![企业微信截图_16511390962885](https://user-images.githubusercontent.com/2437533/165725606-f183d63f-9f60-408c-8272-265ccdcf0ee0.png)
2. 子类
![企业微信截图_16511391406328](https://user-image…
-
**视频链接**:https://youtu.be/TgmTdfdT7Kc
# 请翻译以下全部内容
```
标题(翻译主要意思即可,不要超过 100 个字符)
西安秦镇米皮
简介
秦镇米皮,一直全国出名,这次雪鱼专程来到陕西西安的秦镇,来看看秦镇的米皮是什么样子。刚到秦镇,满大街都是卖米皮的,最吸引我的是大妈的小吃摊,她切米皮的刀就有1米长,足足30斤,用这样的刀切米皮需要…