Tag: c#
-
c# .net build error due to strawberry shake graphql client error – “access to the path ‘obj\berry’ is denied”
8 Recently I updated my visual studio to the latest version of 17.5.1 and my target sdk version is NET 7.0 SDK (v7.0.102). Now I have a build error stating that "access to the path ‘objberry’ is denied". Anyone got the same error and suggestion to fix this issue? c# .net graphql strawberry-graphql strawberryshake Share…
-
c# .net build error due to strawberry shake graphql client error – “access to the path ‘obj\berry’ is denied”
8 Recently I updated my visual studio to the latest version of 17.5.1 and my target sdk version is NET 7.0 SDK (v7.0.102). Now I have a build error stating that "access to the path ‘objberry’ is denied". Anyone got the same error and suggestion to fix this issue? c# .net graphql strawberry-graphql strawberryshake Share…
-
Getting 403 forbidden access is denied after adding reference to another project in same solution [closed]
-1 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 hours ago. This post was edited and submitted for review 1 hour…
-
man sscanf: %d is deprecated in C or glibc?
26 I was just reading the glibc sscanf man page (from the Linux man-pages package) and I found the following: The following conversion specifiers are available: (…) d Deprecated. Matches an optionally signed decimal integer; the next pointer must be a pointer to int. i Deprecated. Matches an optionally signed integer; the next…
-
How can you switch includes on and off in Hotchocolate for EFCore
0 So I’m trying to figure out how to tell EfCore when to apply an include to an IQueryable object based on whether the GraphQl request from the client actually includes the related object. Example: 2 Classes: Person, Payment Theses are kept in 2 different tables and related Person -> Payment in a one to…
-
Null checking with primary constructor in C# 12
7 I using C# 12. In C# 12 I can use primary constructor: public class UserService(IUnitOfWork uow) : IUserService { } Before C# 12 I used null checking for items that I inject in constructor: public class UserService : IUserService { private readonly IUnitOfWork _uow; public UserService(IUnitOfWork uow) { ArgumentNullException.ThrowIfNull(uow); _uow = uow; } }…
-
Does a const char* literal string persistently exist as long as the process alive?
12 I have functions like the following: const char* get_message() { return "This is a constant message, will NOT change forever!"; }; const char* get_message2() { return "message2"; }; And I’m planning to use them everywhere my app, even though in different threads. I’m wondering about the life time of these strings, i.e. whether it’s…
-
The LINQ expression OrderBy DateTimeOffset.DateTime could not be translated
0 I have a .NET Core project in which I have implemented this GraphQL query. The query works correctly, but the sorting by date is not working. [UsePaging(MaxPageSize = 200, IncludeTotalCount = true)] [UseProjection] [UseFiltering] [UseSorting] public async Task<IQueryable<UserDto>> UserMetadatas(string myValue, [Service] ActivityEngineDataContext context,[Service] IMapper mapper) { var entities = context.Users.Where(act => act.MyValue== myValue); return…
-
View pre-deserialized response from GraphQL query
1 I have a simple GraphQL query that I’m making out to a server, and trying to use GraphQL.Client.Serializer.Newtonsoft to deserialize it. I’m getting a response, but the response does not make the NewtonsoftJsonSerializer happy. It complains: This converter can only parse when the root element is a JSON Object. Okay, fair enough. The response…
-
Are `int main()` and `int main(void)` equivalent prototypes in C23?
11 C23 introduced new semantics in function declarators: 6.7.6.3 Function declarators […] 13 For a function declarator without a parameter type list: the effect is as if it were declared with a parameter type list consisting of the keyword void. A function declarator provides a prototype for the function. This seems to imply that a function…