ykl
116
Points
5
Posts
|
I have following generic method sygnature:
public Result<MyAction> Search<TKey>(PageRequest request, Expression<Func<MyAction, bool>> whereExpression = null, Expression<Func<MyAction, TKey>> orderBy = null, bool isAsc = true)
Here I'm facing challenge to pass ...
Views:
107
Total Answered:
0
Total Marked As Answer:
0
Posted On:
30-Oct-2023 01:49
|
beginer
1328
Points
43
Posts
|
Getting following error:
System.NotSupportedException: Serializer for System.DateTime must implement IBsonDocumentSerializer to be used with LINQ.
at MongoDB.Driver.Linq.Linq3Implementation.Misc.DocumentSerializerHelper.GetMemberSerializationInfo(IBsonSerializer serializer, String memberName)
...
Views:
102
Total Answered:
1
Total Marked As Answer:
0
Posted On:
27-Oct-2023 02:16
|
Testme
2
Points
1
Posts
|
Can we use assignment method in c# for assignment purpose? I'm trying to use like this:
class SomeClass
{
int i = 10; // the value was i was 9;
i = i.Add(2); // here 10 + 2
Console.WriteLine(i); // it is printing 12
}
Extension method as:
public static int Add(this int firstIn ...
Views:
82
Total Answered:
0
Total Marked As Answer:
0
Posted On:
25-Oct-2023 06:21
|
mongo
84
Points
8
Posts
|
I'm developing .Net applicaiton in .Net 7.0 with mondodb driver version
2.19.2. For example here:
public IEnumerable<T> GetById(string id)
{
var filter = Builders<T>.Filter.Eq("_id", id);
return _mongoCollection.Find(filter).ToEnumerable();
}
Is there an ...
Views:
150
Total Answered:
3
Total Marked As Answer:
0
Posted On:
11-Oct-2023 21:50
|
ykl
116
Points
5
Posts
|
I'm trying to put optional rout value something like:
ResolveKey/{key}/{resolver?}
But it's not allowing to save it in azure.
Is there any other way to make it optional?
Views:
134
Total Answered:
2
Total Marked As Answer:
2
Posted On:
08-Oct-2023 23:12
|
ykl
116
Points
5
Posts
|
I'm trying to store _id as uuid in mongodb but it's converting to LUUID. Entity model:
[BsonIgnoreExtraElements]
public class myEntity{
[BsonId]
public Guid _id { get; set; }
public string modifier { get; set; }
public string creator { get; set; }
}
In mongo ...
Views:
133
Total Answered:
2
Total Marked As Answer:
1
Posted On:
08-Oct-2023 22:43
|
Raj
496
Points
21
Posts
|
I switched VS from older version to VS 2022. I observed that .dbml file editor/designer is not coming. Instead of designer it's showing xml editor.
Anyone has any solution for it?
Views:
146
Total Answered:
1
Total Marked As Answer:
1
Posted On:
05-Oct-2023 02:16
|
Linux U
42
Points
1
Posts
|
I'm using Visual Studio Code and running in Ubuntu (WSL). Tryting intall latest version, here what getting in the terminal
$ dotnet --version
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application '--version' does not exist.
* ...
Views:
220
Total Answered:
2
Total Marked As Answer:
1
Posted On:
25-Sep-2023 03:00
|
Raj
496
Points
21
Posts
|
Here i'm trying to do linking in a page as:
<div id="CommentAnchor" class="Comment">
<a id="anchorCommentAnchor" href="#CommentAnchor"></a>
</div>
Here trying dynamically click event:
$('#anchorCommentAnchor').click();
But its not working.
How to trigg ...
Views:
173
Total Answered:
2
Total Marked As Answer:
1
Posted On:
18-Sep-2023 00:56
|
kailash
12
Points
1
Posts
|
I have following extension method in fhir R4 model in .net nuget package as:
Hl7.Fhir.Model.Resource.TryDeriveResourceType(out ResourceType resourceType);
It's fine when using it as single object but when try to compare in LINQ query - how to compare it. I'm trying something like:
var patientR ...
Views:
163
Total Answered:
1
Total Marked As Answer:
1
Posted On:
13-Sep-2023 01:08
|