BekirK
BekirK
CC#
Created by BekirK on 4/16/2024 in #help
Run multiple test projects in parallel
What are you doing in your projects for improve the tests speed. Can you give me some ideas?
2 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Thanks a lot for your help and advice. I learned good things
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Ahahha exactly, I already gave up on it after talking to you
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
hmm i see
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
This is actually not a necessity. We just whink about it
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Its not just our desicion. Db admin suggest this to us. We dont want to do this really. Because there is a lot of work/effort/hours for this. because you should preserve the previous values of each enum according to their counterparts in the db. There are many things you need to pay attention to when going to the production environment, etc.
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Yep you re right actually
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
It's actually not a bottleneck for us. But it is just a necessary step for optimization. Although it makes sense to keep the enum as a string in the db for reporting etc., the correct thing is to keep it numerical. So our team decided to choose this.
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Normally we keep it that way. But since data kept as string reduces performance in indexed queries, we now must refactor all enums as int. We were warned about this by our db admin ://
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
This is a team decision. We did not find it appropriate for types to start with 0 in the db. We want all enums to start from 1. But we didn't want to always define for 1 in enum
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Hmm i think this is gonna be complicated. It doesnt afford this effort
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
I thought I could do it :/
40 replies
CC#
Created by BekirK on 1/22/2024 in #help
✅ How to set enum default int value
Thats very sharp answer 😅
40 replies
CC#
Created by BekirK on 1/11/2024 in #help
OData filtering
Error Message: errors": ["The LINQ expression 'DbSet<User>()\r\n .Where(u => !(u.IsDeleted))\r\n .Where(u => DbSet<UserRole>()\r\n .Where(u0 => !(u0.IsDeleted))\r\n .Where(u0 => EF.Property<Guid?>(u, "Id") != null && object.Equals(\r\n objA: (object)EF.Property<Guid?>(u, "Id"), \r\n objB: (object)EF.Property<Guid?>(u0, "UserId")))\r\n .Any() ? string.Join(\r\n separator: ",", \r\n values: DbSet<UserRole>()\r\n .Where(u1 => !(u1.IsDeleted))\r\n .Where(u1 => EF.Property<Guid?>(u, "Id") != null && object.Equals(\r\n objA: (object)EF.Property<Guid?>(u, "Id"), \r\n objB: (object)EF.Property<Guid?>(u1, "UserId")))\r\n .Join(\r\n inner: DbSet<Role>()\r\n .Where(r => !(r.IsDeleted) && r.PropertyId == 00000000-0000-0000-0000-000000000000 || (Guid?)r.PropertyId == (Guid?)c8109bdf-1d8e-42c9-bc9d-be70fb1333bb), \r\n outerKeySelector: u1 => EF.Property<Guid?>(u1, "RoleId"), \r\n innerKeySelector: r => EF.Property<Guid?>(r, "Id"), \r\n resultSelector: (o, i) => new TransparentIdentifier<UserRole, Role>(\r\n Outer = o, \r\n Inner = i\r\n ))\r\n .Select(u1 => u1.Inner.Description)) : null == __TypedProperty_0)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information."]
3 replies
CC#
Created by titan 1-1 on 1/8/2024 in #help
There are a lot of IF statements here
you can review this article for null-coalescing. Its useful
22 replies
CC#
Created by titan 1-1 on 1/8/2024 in #help
There are a lot of IF statements here
22 replies
CC#
Created by titan 1-1 on 1/8/2024 in #help
There are a lot of IF statements here
Nested if blocks can be removed. You can check two conditions with a single if. In the form of if (a && b), there is only one if condition in it, no separate situation is handled. The switch-case structure may be more suitable for such a situation. You can even write a generic method to evaluate relevant conditions rather than repeating the same code. CheckIsNull(SmokeFix) etc.
22 replies
CC#
Created by BekirK on 1/8/2024 in #help
On the ValueGeneratedNever() method
No description
2 replies
CC#
Created by BekirK on 1/6/2024 in #help
✅ double the number of tests in Rider after upgraded to .net 7
It means clear cache right?
32 replies
CC#
Created by BekirK on 1/6/2024 in #help
✅ double the number of tests in Rider after upgraded to .net 7
32 replies