Beispiel #1
0
 public override void SetOnCmd(NrdoCommand cmd)
 {
     for (var i = 0; i < cache.identity.paramNames.Count; i++)
     {
         parameters[i].SetParameter(cmd, cache.identity.paramNames[i]);
     }
 }
Beispiel #2
0
 public override void SetOnCmd(NrdoCommand cmd)
 {
     if (setParameterValues != null)
     {
         setParameterValues(cmd);
     }
 }
Beispiel #3
0
 private void setSubParams(NrdoCommand cmd, Identifier parent, Identifier child)
 {
     cmd.SetString("ptype", "varchar", parent.ObjectType.Name);
     cmd.SetString("pname", "varchar", parent.Name);
     cmd.SetString("type", "varchar", child.ObjectType.Name);
     cmd.SetString("name", "varchar", child.Name);
 }
Beispiel #4
0
 protected abstract void setDataOnCmd(NrdoCommand cmd);
Beispiel #5
0
 protected abstract void setPkeyOnCmd(NrdoCommand cmd);
Beispiel #6
0
 // float -> dbtype Single, IDataType Float
 public static void SetFloatParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, float?value)
     where T : DBObject <T>
 {
     cmd.SetFloat(name, dbType, value);
 }
Beispiel #7
0
 // long -> Int64
 public static void SetLongParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, long?value)
     where T : DBObject <T>
 {
     cmd.SetLong(name, dbType, value);
 }
Beispiel #8
0
 // char -> dbtype StringFixedLength, IDataType Char
 public static void SetCharParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, char value)
     where T : DBObject <T>
 {
     cmd.SetChar(name, dbType, value);
 }
Beispiel #9
0
 // DateTime -> DateTime
 public static void SetDateTimeParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, DateTime?value)
     where T : DBObject <T>
 {
     cmd.SetDateTime(name, dbType, value);
 }
Beispiel #10
0
 // decimal -> dbtype (if sqltype = $dbmoneytype$ then Currency else Decimal), IDataType Decimal
 public static void SetDecimalParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, decimal?value)
     where T : DBObject <T>
 {
     cmd.SetDecimal(name, dbType, value);
 }
Beispiel #11
0
 public override void SetOnCmd(NrdoCommand cmd) => throw new NotImplementedException();
Beispiel #12
0
 public abstract void SetOnCmd(NrdoCommand cmd);
Beispiel #13
0
 protected override void setPkeyOnCmd(NrdoCommand cmd)
 {
     throw new NotImplementedException();
 }
Beispiel #14
0
 public void SetParameter(NrdoCommand cmd, string name)
 {
     cmd.SetParameter(name, dbType, len, value);
 }
Beispiel #15
0
 public override void SetOnCmd(NrdoCommand cmd)
 {
 }
Beispiel #16
0
 private void setRootParams(NrdoCommand cmd, Identifier identifier)
 {
     cmd.SetString("type", "varchar", identifier.ObjectType.Name);
     cmd.SetString("name", "varchar", identifier.Name);
 }