Search results for query: *

  • Users: Elad
  • Order by date
  1. Elad

    How to use linq with ObservableCollection?

    Hello! I have a problem with ObservableCollection that does not work well with linq's Where function, the ObservableCollection itself contains a class type with properties. I checked with debugger and noticed that in the whole row of the place where the place does not check even one element but...
  2. Elad

    Question Windows Forms (Winforms) or WPF? (2019)

    I do not know if you ask or suggest which package is worth working on, anyway I recommend you go for WPF which is more powerful than Winform The convenience that WPF has is much more than WinForm is very easy and simple to understand (even though it's a whole world) you can do so many cool...
  3. Elad

    How to initialize a variable of type Interface as empty?

    I'm using the new Visual Studio 2022, so its default is .net Framework 6 But I did not understand what it means to "decorate" Can you give an example that I will understand?
  4. Elad

    How to initialize a variable of type Interface as empty?

    public Package(Priority priority, Address senderAddress, Address destinationAdress) { PackageID = count++; Priority = priority; Tracking = new List<Tracking>(); SenderAddress = senderAddress; DestinationAddress =...
  5. Elad

    Triggers in sql server

    Okay, so I did not notice that mistake. can you help anyway?
  6. Elad

    Triggers in sql server

    I did not really understand? I posted on the sql category no c #
  7. Elad

    Triggers in sql server

    Hello! How to create trigger on remote server? (Sql server) CREATE TRIGGER [dbo].my_trigger_name ON [ip/ server name].[table_name] AFTER UPDATE AS {sql_statements...}
  8. Elad

    Question Unit Testing with EF on MVC 5

    The tests you are trying to do are not suitable for tests on DB you need integration tests, You can use with something called moq. However, the problem presented during the unit test You'll need to somehow tell the view engine to make those other assemblies available to your code to be tested.
  9. Elad

    Question How to prepare ViewModel for tables from EF when I work with Mata Data Library project?

    [HttpPost] //Here I want to get more fields that do not actually exist in the tbVolunteerInfo table public ActionResult SignUp(tbVolunteerInfoMetaData tb) { if (ModelState.IsValid) { using (MaterialDbEntities MatDb =...
  10. Elad

    Question How to prepare ViewModel for tables from EF when I work with Mata Data Library project?

    I think I found a solution, It's a simple set-in action that is returned via Post that will get the climb tbVolunteerInfoMetaData and how much I kept all the fields. So that was a maybe stupid question, but the question is whether this is actually the right way to do things? [HttpPost]...
  11. Elad

    Question How to Create Multiple CheckBox with Data Annotation Inside the View?

    Hello! I have two problems 1: How to create multiple checkboxes and require the user to select at least one checkbox? 2. How do I create within a 'View' using a CheckBoxFor loop with such a requirement? I did not find anything on the internet with such an example but only a standard input box of...
  12. Elad

    Question How to prepare ViewModel for tables from EF when I work with Mata Data Library project?

    Hello I have a problem that I build in a separate project classes that EF creates for me from a SQL server, with two or more tables and I add the refernce to an MVC project so the way Contrlloer knows to associate the object of the table -when the user enters values let's put in boxes Text in a...
  13. Elad

    How to start from a particular element in an array

    Well thanks I got it! The truth is I actually saw a button of 'tags' and thought you were talking about it
  14. Elad

    How to start from a particular element in an array

    I'm really sorry but the tag does not work for me, I have tried several times but every time I get a message that a code or something like that is missing, even though the code is perfectly fine.
  15. Elad

    How to start from a particular element in an array

    hello! I want to build a Merge Sort sort, but I ran into a pretty annoying problem. In C++ or even in C I send an array or pointer to a function the pointer is always pointing to the first member so it is very easy to send to the recursive function the array every time in some member and not...
  16. Elad

    Answered Is object 'SortedSet' intended for primitive variables that are not arrays?

    Here is the code for whoever asked: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace LotoHashSet { class Program { static HashSet<int[]> hashLoto = new...
  17. Elad

    Answered Is object 'SortedSet' intended for primitive variables that are not arrays?

    to example: static SortedSet<int[]> stl = new SortedSet<int[]>(); If I try to add a second member as an array of int I get an error that I should implement an IComparable interface: (A screenshot appears of error below image 1) My question is is it at all correct to work with SortedSet with an...
  18. Elad

    Question about HashSet<int[]>

    I forgot to mention what I do So I'll explain, This is a program that produces 8 numbers and a winning number determined by the first index. You are right that the purpose of the program is not the most logical, but the part is to learn to use with HashSet even with different types. The idea of...
  19. Elad

    Question about HashSet<int[]>

    Skydiver Thank you! The code works well without problems now Thanks to you! Here is my code snippet If you have a tip to make the code more effective I'd love to hear using System.IO; using System.Linq; using System.Text; namespace HashSetOfArrayInt { class Program { static...
  20. Elad

    Question about HashSet<int[]>

    Hey! I wanted to find out, is it true to use an entire HashSet array? Or the HashSet object is for certain real things, and not for any array! However, if there is no logical limit whatsoever I wanted to find out how I could anyway HashSet does not need to replicate a repeatable array, I know...
Back
Top Bottom