public void Prepare(System.IServiceProvider locator) { this.cms.Reset(); this.locator = locator; this.list.Clear(); this.one = null; }
public static global::UseCase1.SelectedSubmission CreateFromExtendedRecord(Revenj.Utility.BufferedTextReader reader, int outerContext, int context, IServiceProvider locator) { reader.Read(outerContext); var item = new global::UseCase1.SelectedSubmission(locator); foreach (var config in ReaderExtendedConfiguration) { config(item, reader, context, locator); } reader.Read(outerContext); return(item); }
internal void CollectOne(System.Data.IDataReader dr) { var _pg = dr.GetValue(0); var _str = _pg as string; if (_str != null) { one = _DatabaseCommon.FactoryUseCase1_SelectedSubmission.SelectedSubmissionConverter.CreateFromRecord(cms.UseBufferedReader(_str), 0, locator); } else { var _tr = _pg as System.IO.TextReader ?? new System.IO.StringReader(_pg.ToString()); try { one = _DatabaseCommon.FactoryUseCase1_SelectedSubmission.SelectedSubmissionConverter.CreateFromRecord(cms.UseBufferedReader(_tr), 0, locator); } finally { _tr.Dispose(); } } }
public static IPostgresTuple CreateExtendedTupleFrom(global::UseCase1.SelectedSubmission item) { if (item == null) { return(null); } var items = new IPostgresTuple[ExtendedColumnCount]; items[ExtendedProperty_URI_Index] = new Revenj.DatabasePersistence.Postgres.Converters.ValueTuple(item.URI); items[ExtendedProperty_Customer_Index] = _DatabaseCommon.Utility.StringToTuple(item.Customer); items[ExtendedProperty_Form_Index] = _DatabaseCommon.Utility.StringToTuple(item.Form); items[ExtendedProperty_Schema_Index] = _DatabaseCommon.Utility.StringToTuple(item.Schema); items[ExtendedProperty_FormInputs_Index] = ArrayTuple.Create(item.FormInputs, _DatabaseCommon.FactoryUseCase1_Entry.EntryConverter.CreateExtendedTupleFrom); items[ExtendedProperty_Group_Index] = _DatabaseCommon.Utility.StringToTuple(item.Group); items[ExtendedProperty_Comments_Index] = _DatabaseCommon.Utility.StringToTuple(item.Comments); items[ExtendedProperty_Date_Index] = _DatabaseCommon.Utility.TimestampToTuple(item.Date); return(RecordTuple.From(items)); }
public static bool Where(this global::UseCase1.SelectedSubmission domainObject, string uri) { var specification = new global::UseCase1.SelectedSubmission.Where(uri: uri); return(specification._HelperFunctionIsSatisfiedBy(domainObject)); }
public _SubmissionSpecification_(global::UseCase1.SelectedSubmission data) { this.Data = data; }