2 using System
.Collections
.Generic
;
4 public abstract class BaseDataObjectFactory
6 protected static T GetBusinessQueryObjectFromReader
<T
> ()
7 where T
: BusinessQueryObject
, new ()
13 public abstract T
[] GetQueryObjects
<T
> (string query
)
14 where T
: BusinessQueryObject
, new ();
17 public class BusinessQueryObject
21 public class MySqlDataObjectFactory
: BaseDataObjectFactory
23 public override T
[] GetQueryObjects
<T
> (string query
)
25 List
<T
> list
= new List
<T
> ();
26 list
.Add (GetBusinessQueryObjectFromReader
<T
> ());
29 list
.Add(GetBusinessQueryObjectFromReader
<T
>());
31 return list
.ToArray ();
34 static void ExecuteReader (int a
, PerformActionWithReader action
)
38 delegate void PerformActionWithReader ();
43 public static void Main ()