0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Data.Linq
|
|
4 {
|
|
5 [AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
|
|
6 public class MethodExpressionAttribute : Attribute
|
|
7 {
|
|
8 public MethodExpressionAttribute(string methodName)
|
|
9 {
|
|
10 MethodName = methodName;
|
|
11 }
|
|
12
|
|
13 public MethodExpressionAttribute(string sqlProvider, string methodName)
|
|
14 {
|
|
15 SqlProvider = sqlProvider;
|
|
16 MethodName = methodName;
|
|
17 }
|
|
18
|
|
19 public string SqlProvider { get; set; }
|
|
20 public string MethodName { get; set; }
|
|
21 }
|
|
22 }
|