コード例 #1
0
 /// <summary>
 /// 构造函数,创建一个指定DBS的空System.Object实例的SQL语句生成实例。
 /// </summary>
 /// <param name="supportedDbSystem">受CCL支持的DBS。</param>
 public SQLGenerator(ESupportedDbSystem supportedDbSystem)
 {
     _operatedObject      = new object();
     _sqlSentence         = string.Empty;
     _supportedDbSystem   = supportedDbSystem;
     _dateTimeConvertMode = EDateTimeConvertMode.ToString;
 }
コード例 #2
0
 /// <summary>
 /// 构造函数,创建一个指定操作对象SQL语句生成实例。
 /// </summary>
 /// <param name="operatedObject">需要生成对应成员SQL语句的对象。</param>
 /// <param name="supportedDbSystem">受CCL支持的DBS。</param>
 /// <param name="dateTimeConvertMode">指定日期类型转换存储的模式。</param>
 /// <exception cref="NotSupportedTypeException">当参数operatedObject指定的对象不受支持时,则会抛出这个异常。</exception>
 public SQLGenerator(object operatedObject, ESupportedDbSystem supportedDbSystem, EDateTimeConvertMode dateTimeConvertMode)
 {
     if (operatedObject.GetType().FullName == @"Cabinink.DataTreatment.ORMapping.SQLGenerator")
     {
         throw new NotSupportedTypeException();
     }
     _operatedObject      = operatedObject;
     _sqlSentence         = string.Empty;
     _supportedDbSystem   = supportedDbSystem;
     _dateTimeConvertMode = dateTimeConvertMode;
 }