SWEETPONY
SWEETPONY
CC#
Created by SWEETPONY on 10/6/2024 in #help
✅ How to speed up execution of BigInteger.Pow?
I'm here. Actually I don't understand what is BigInteger.Pow10 and how should I use it
13 replies
CC#
Created by SWEETPONY on 9/11/2024 in #help
Error: The value of shadow key property 'ResourceDemandChunks.Id' is unknown when attempting to save
fixed
3 replies
CC#
Created by SWEETPONY on 9/11/2024 in #help
Error: The value of shadow key property 'ResourceDemandChunks.Id' is unknown when attempting to save
The error only appears when I want to update properties in the entity where the ResourceDemandChunks are filled. If I create an entity and fill in ResourceDemandChunks, then everything is fine and there are no errors
3 replies
CC#
Created by SWEETPONY on 7/28/2024 in #help
✅ How to correctly write conditions with expressions?
ah thanks for helping me
10 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
in my case it works well
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
but anyway SelectedItem should work
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
No description
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
thats what you asked for: * is there a way to pass selected list member to VM?*
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
<ListBox SelectedItem="{MyItem}"> and MyItem can be used in viewmodel MyItem will be changed after each click
17 replies
CC#
Created by edgarka_ on 7/21/2024 in #help
Avalonia ListBox pass selected DataTemplate
17 replies
CC#
Created by SWEETPONY on 7/16/2024 in #help
✅ is there any way to delete items from the database and return the deleted list in one request?
thanks for helping
14 replies
CC#
Created by SWEETPONY on 7/16/2024 in #help
✅ is there any way to delete items from the database and return the deleted list in one request?
with DbContext.T.Where(entity => ..).ExecuteDelete() I can only delete but I need to return deleted items too
14 replies
CC#
Created by SWEETPONY on 7/16/2024 in #help
✅ is there any way to delete items from the database and return the deleted list in one request?
I think row sql is the best option here - delete from x where x.a = 1 returning *
14 replies
CC#
Created by SWEETPONY on 7/2/2024 in #help
✅ How to optimize this method?
ah I know, thanks
4 replies
CC#
Created by SWEETPONY on 7/2/2024 in #help
✅ How to optimize this method?
🙂 but how to get changes after update?
4 replies
CC#
Created by SWEETPONY on 6/21/2024 in #help
Is it possible to update public IReadOnlyList?
in the last line
12 replies
CC#
Created by SWEETPONY on 6/21/2024 in #help
Is it possible to update public IReadOnlyList?
but got an exception "Property set method not found."
12 replies
CC#
Created by SWEETPONY on 6/21/2024 in #help
Is it possible to update public IReadOnlyList?
I tried this:
var newSelections = new List<ISelectionNode>(node.SelectionSet!.Selections)
{
new FieldNode("test")
}.AsReadOnly();

var selectionSetProperty = node.GetType().GetProperty("SelectionSet");
var selectionSet = selectionSetProperty?.GetValue(node);
var selectionsProperty = selectionSet?.GetType().GetProperty("Selections");

if(selectionsProperty != null)
{
selectionsProperty.SetValue(selectionSet, newSelections);
}
var newSelections = new List<ISelectionNode>(node.SelectionSet!.Selections)
{
new FieldNode("test")
}.AsReadOnly();

var selectionSetProperty = node.GetType().GetProperty("SelectionSet");
var selectionSet = selectionSetProperty?.GetValue(node);
var selectionsProperty = selectionSet?.GetType().GetProperty("Selections");

if(selectionsProperty != null)
{
selectionsProperty.SetValue(selectionSet, newSelections);
}
12 replies
CC#
Created by SWEETPONY on 6/21/2024 in #help
Is it possible to update public IReadOnlyList?
hm
12 replies