Shinyshark
Shinyshark
CC#
Created by songdapeng on 6/9/2023 in #help
❔ WPF, deisgn to use ribbonmeun in every page and any page show in main frame
Otherwise they will both occupy the same row and column.
5 replies
CC#
Created by songdapeng on 6/9/2023 in #help
❔ WPF, deisgn to use ribbonmeun in every page and any page show in main frame
I don't know how relevant it is, but if you've made a grid with two elements inside of it, you should also define how the rows / columns of the grid work.
5 replies
CC#
Created by Cuda on 2/15/2023 in #help
✅ Saving api json data to db
You can map the data from your deserialized model to your database entity
15 replies
CC#
Created by Cuda on 2/15/2023 in #help
✅ Saving api json data to db
You could use JsonConvert to deserialize it into an object and save that to your database.
15 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
I thought you were making it as a console app or something.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
Oooh my bad, I didn't know you were using Unity.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
If you want to compare a chosen suit, you can just use the "==" comparison.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
But if you are new, do not worry about it too much. Make the code work and learn from the issues you will run into eventually.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
A lot of decisions you make in programming are valid. It depends on your reasoning behind them why you made them.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
So in that case, you would indeed tell it to add the using.
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
40 replies
CC#
Created by CrossTheLine on 2/7/2023 in #help
✅ Best way to use and compare enums? (Unity)
You want to check if a selected Enum is like another Enum? @CrossTheLine
40 replies
CC#
Created by Sygmond on 2/6/2023 in #help
❔ What’s the point of Database.BeginTransaction?
You'd use it in an async method so that the user can go about their business whilst this code finishes up in the background.
9 replies
CC#
Created by Sygmond on 2/6/2023 in #help
❔ What’s the point of Database.BeginTransaction?
I do not know what your use case is, but usually you do not let your user interact with things in the middle of a transaction.
9 replies
CC#
Created by Sygmond on 2/6/2023 in #help
❔ What’s the point of Database.BeginTransaction?
If you had to run SaveChanges to get some data that another part of your code relies on, you don't want that data to remain if the other part failed.
9 replies
CC#
Created by Sygmond on 2/6/2023 in #help
❔ What’s the point of Database.BeginTransaction?
Look at it like this
9 replies
CC#
Created by Sygmond on 2/6/2023 in #help
❔ What’s the point of Database.BeginTransaction?
It depends on your situation. The garbage collector will clean up any resources the moment their scope is no longer used. With a using block you are making that scope smaller.
9 replies