Exemplo n.º 1
0
        public async Task <RefDataNamespace.GenderCollection> GenderGetAllAsync()
        {
            var __coll = new RefDataNamespace.GenderCollection();
            await DataInvoker.Default.InvokeAsync(this, async() =>
            {
                await Database.Default.GetRefDataAsync <RefDataNamespace.GenderCollection, RefDataNamespace.Gender>(__coll, "[Ref].[spGenderGetAll]", "GenderId", additionalProperties: (dr, item, fields) =>
                {
                    item.AlternateName = dr.GetValue <string>("AlternateName");
                });
            }, BusinessInvokerArgs.RequiresNewAndTransactionSuppress);

            return(__coll);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets all the <see cref="RefDataNamespace.Gender"/> objects.
        /// </summary>
        /// <returns>A <see cref="RefDataNamespace.GenderCollection"/>.</returns>
        public async Task <RefDataNamespace.GenderCollection> GenderGetAllAsync()
        {
            var __coll = new RefDataNamespace.GenderCollection();
            await DataInvoker.Default.InvokeAsync(this, async() =>
            {
                Database.Default.GetRefData <RefDataNamespace.GenderCollection, RefDataNamespace.Gender>(__coll, "[Ref].[spGenderGetAll]", "GenderId", additionalProperties: (dr, item, fields) =>
                {
                });
                await Task.CompletedTask;
            }, BusinessInvokerArgs.RequiresNewAndTransactionSuppress);

            return(__coll);
        }
Exemplo n.º 3
0
        public async Task <RefDataNamespace.GenderCollection> GenderGetAllAsync()
        {
            var __coll = new RefDataNamespace.GenderCollection();
            await DataInvoker.Current.InvokeAsync(this, async() =>
            {
                await _db.GetRefDataAsync <RefDataNamespace.GenderCollection, RefDataNamespace.Gender>(__coll, "[Ref].[spGenderGetAll]", "GenderId", additionalProperties: (dr, item, fields) =>
                {
                    item.AlternateName = dr.GetValue <string>("AlternateName");
                    item.TripCode      = dr.GetValue <string>("TripCode");
                });
            }, BusinessInvokerArgs.TransactionSuppress).ConfigureAwait(false);

            return(__coll);
        }