Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "thobiasxp"

Hi, Good Afternoon,

Hi guys, I am trying to get UTC timing for each users by assigning to them. I saw that tenant timing zone configuration is coming from " <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>". Can we know whether it is a controller or appservice or meta data or where we can edit these information.

Thanks

Hi , Good Morning,

We need to set UTC time for the user. But we were not able to see UTC time settings under tenant setting. Can you help us to how to enable UTC timing for users.

Thanks

Hi, Good Evening,

We have custom dbcontext and we try to run store procedure while on development that Store procedure is running perfectly but when we publish and try to run stored procedure its showing as internal error. Kindly provide us solution.

////Db Context

public class SpDbContext : DbContext
    {
        public SpDbContext()
            : base(GetConnectionString())
        {

        }

        private static string GetConnectionString()
        {
            //Notice that; this logic only works on development time.
            //It is used to get connection string from appsettings.json in the Web project.

            var configuration = AppConfigurations.Get(
                WebContentDirectoryFinder.CalculateContentRootFolder()
                );

            return configuration.GetConnectionString(
                stemConsts.ConnectionStringName
                );
        }

        public SpDbContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {

        }

        public SpDbContext(DbConnection existingConnection)
            : base(existingConnection, false)
        {

        }

        public SpDbContext(DbConnection existingConnection, bool contextOwnsConnection)
            : base(existingConnection, contextOwnsConnection)
        {

        }
    }


// Method of Stored Procedure


public async Task DeleteCity(EntityDto input)
        {
             try
                {
                using (var context = new SpDbContext())
                  {

                    var idd = new SqlParameter
                    {
                        ParameterName = "TableId",
                        Value = 2
                    };
                    var list = context.Database.SqlQuery<FindDelete>("exec Sp_FindMappedTable @TableId", idd).ToList();

                    var count = list.Where(f => f.id == input.Id).ToList();
                    if (count.Count() <= 0)
                    {

                        await _cityRepository.DeleteAsync(input.Id);
                    }
                    else
                    {
                        throw new UserFriendlyException("Unable to Delete", "Data is being used by another Field");
                    }
                }
                }
                catch (Exception ex)
                {

                }
        }

Thanks

Hi,

Good Morning, While updating a table the creator userid is missing and updated creator userid as null and we have tried to add using full audited entity class but also same result creator userid is updated as null. Can you please provide us solution while updating table.

This is the method we have written for updating a table

public async Task UpdateCountry(CountryInputDto input) { var country = input.MapTo<Country>(); await _countryRepository.UpdateAsync(country); }

Input Class

[AutoMapTo(typeof(Country))] public class CountryInputDto { public int Id { get; set; } public virtual string CountryName { get; set; } public virtual string CountryCode { get; set; } }

Thanks

Hi,

am using your inbuilt jq-plugin selectpicker (Directive) , when the array is updated in the component it does't re initialize the selectpicker

Question

Hi Good Evening,

We need create a pop up with url. Is it possible to do it, if yes could you please help us to do it.

Thanks

Question

Hi, Good Morning,

How to use popup inside another popup in angular 2??

Thanks

Hi, Good Morning,

Can you helps us? How can we set the server side asp.net core to be accessed by multiple client side angular 2 for developing.

Thanks

Hi, Good Morning,

When we try to pass input value through swagger for testing the value is always going as 0 to the method. Is it a issue or we need to set something on swagger for sending input value to method??Can you guyss help us...

Thanks

Hi,

We followed the link: <a class="postlink" href="https://aspnetzero.com/Documents/Merge-Angular-Client-Server">https://aspnetzero.com/Documents/Merge- ... ent-Server</a> to combine client and server solution on visual studio 2015. After that when we run through visual studio, the server side coding it is running perfectly (to swagger/ui/index.html) but the client side is not working. When we run npm start commend it is showing error in (index.d.ts) file inside node-module folder.

Showing 1 to 10 of 27 entries