public static Row Create(AllorsSession session, Table table) { var obj = session.Create <Row>(); table.AddRow(obj); return(obj); }
public static Library Create(AllorsSession session, string name) { var lib = session.Create <Library>(); lib.Name = name; return(lib); }
public void SetUp() { if (AllorsSession == null) { AllorsSession = AllorsConfiguration.CreateDisconnectedPopulation().CreateSession(); } }
public Program Find(AllorsSession session, string programname) { AllorsExtent <Program> programs = this.Programs; programs.Filter.AddEquals(AllorsDomains.IseriesDomain.ProgramName.Role, programname); return(programs.First); }
public static Table Create(AllorsSession session, Library lib, string name) { var obj = session.Create<Table>(); obj.Name = name; lib.AddTable(obj); return obj; }
public static DecimalCell Create(AllorsSession session, Row row, decimal value) { var obj = session.Create <DecimalCell>(); obj.Value = value; row.AddCell(obj); return(obj); }
public static DateParameter Create(AllorsSession session, string name, DateTime value) { var param = session.Create <DateParameter>(); param.Name = name; param.Value = value; return(param); }
public static Program Create(AllorsSession session, string name, Library library) { var pgm = session.Create <Program>(); pgm.Name = name; library.AddProgram(pgm); return(pgm); }
public static StringCell Create(AllorsSession session, Row row, string value) { var obj = session.Create <StringCell>(); obj.Value = value; row.AddCell(obj); return(obj); }
public static IntParameter Create(AllorsSession session, string name, int value) { var param = session.Create <IntParameter>(); param.Name = name; param.Value = value; return(param); }
public static DateTimeCell Create(AllorsSession session, Row row, DateTime value) { var obj = session.Create <DateTimeCell>(); obj.Value = value; row.AddCell(obj); return(obj); }
public static IntCell Create(AllorsSession session, Row row, int value) { var obj = session.Create <IntCell>(); obj.Value = value; row.AddCell(obj); return(obj); }
public static StringParameter Create(AllorsSession session, string name, int length, string value) { var param = session.Create <StringParameter>(); param.Length = length; param.Name = name; param.Value = value; return(param); }
public static Column Create(AllorsSession session, Table table, string name, Type dbType) { var obj = session.Create <Column>(); obj.Name = name; obj.DbType = dbType.ToString(); table.AddColumn(obj); return(obj); }
public static DecimalParameter Create(AllorsSession session, string name, int precision, int scale, Decimal value) { var param = session.Create <DecimalParameter>(); param.Name = name; param.Precision = precision; param.Scale = scale; param.Value = value; return(param); }
public static Cell Create(AllorsSession session, Row row, Column col, object value) { switch (col.DbType) { case "System.String": return(StringCell.Create(session, row, (string)value)); case "System.Integer": case "System.Int32": return(IntCell.Create(session, row, (int)value)); case "System.Decimal": return(DecimalCell.Create(session, row, (decimal)value)); case "System.DateTime": return(DateTimeCell.Create(session, row, (DateTime)value)); default: throw new Exception("Type not supported exception"); } }
public static IntParameter Instantiate(AllorsSession session, string id) { return((IntParameter)session.Instantiate(id)); }
public static DecimalCell Instantiate(AllorsSession session, string id) { return((DecimalCell)session.Instantiate(id)); }
public static IntCell Instantiate(AllorsSession session, string id) { return((IntCell)session.Instantiate(id)); }
public void TearDown() { AllorsSession.Rollback(); //AllorsSession.Dispose(); AllorsSession = null; }
public static Row Instantiate(AllorsSession session, string id) { return((Row)session.Instantiate(id)); }
public static DateTimeCell Instantiate(AllorsSession session, string id) { return((DateTimeCell)session.Instantiate(id)); }
public static Column Instantiate(AllorsSession session, string id) { return((Column)session.Instantiate(id)); }
public static Library Instantiate(AllorsSession session, string id) { return((Library)session.Instantiate(id)); }
public static Program Instantiate(AllorsSession session, string id) { return((Program)session.Instantiate(id)); }
public override System.String ToString() { return("Object[type=" + this.GetType().Name + ", id=" + AllorsId + "] " + AllorsSession.ToString()); }
public static Table Instantiate(AllorsSession session, string id) { return((Table)session.Instantiate(id)); }