15,895,667 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Gruja82 (Top 14 by date)
Gruja82
28-Nov-23 14:34pm
View
Yes you are wright. It's Blazor WebAssembly ASP.NET Core hosted.
Gruja82
28-Nov-23 0:56am
View
Thank for your answer. Thing is that only when I put a breakpoint, debugger shows string values in integer parameters. Everything works good. I'm sorry.
To answer to your comments:
1. Paging is done by invoking static method GetPaginatedResult(...) which calculates number of pages
based on input parameters.
2. I know that. I am using it in other entities that have relations with other entities, just forgot
to use it here.
3. UnitOfWork class wraps up all my specific repositories which in turn define all operations that can be applied to specific entity.
4. Yes you are wright, but if I am not mistaken, I am iterating over a IQueryable<t> collection which does not contain actual data, but query. GetPaginatedResult static method returns actual data.
If you like you can take a look at my GitHub repository: https://github.com/Gruja82/BlazorCompany.
Thank you again for your effort and again sorry.
Gruja82
2-May-22 12:00pm
View
After adding this line as first line in main(): system("cls"); everything works fine.
Gruja82
25-Jan-21 12:11pm
View
That example is ok for "regular" properties but in my case with child properties it doesn't work. For example i want to add error on SelectedProduct.Code if it is null or white space - doesn't work.
Gruja82
16-Feb-20 22:33pm
View
BazaContext is dbcontext. I tried to call SaveChanges() in the Execute method of the command but nothing happens
Gruja82
9-Feb-20 11:14am
View
You're right i changed i=i+1 with testLista.Add(i) and results are when using Array - 00:00:00.0000803, and using list<int> - 00:00:00.0002224.
Gruja82
9-Feb-20 7:18am
View
I just wanted to know does the app can be optimized using GC manually. I always tend to use IDisposable and eventually destructors in my code. Thanks for the answer.
Gruja82
9-Feb-20 7:04am
View
Thank you.
Gruja82
9-Feb-20 6:58am
View
For example if app allocated to much memory and start running slower and GC has not run yet.
Gruja82
9-Feb-20 6:54am
View
I understand now, but then maybe i can create some kind of method that determines amount of memory allocated and then fire GC.
Gruja82
7-Feb-20 2:52am
View
I know [mm] is for minutes i made mistake.
Gruja82
8-Jan-20 14:54pm
View
I know. For example if i try to convert '25g' to int it will throw format exception. My problem is if i first enter valid chars for example 25 and after that 'g' it throws an exception. The code does not consider else clause of 'if(numbers.Contains(slovo)) even if i entered char that is not contained in array.
Gruja82
8-Jan-20 13:59pm
View
See the comments in code
Gruja82
4-Sep-19 9:56am
View
Here is what i have tried. It works faster then 'my way' but i am having trouble with the Dim data() As String = line.Split(","). Problem is that this merges whole row in single record and inserts in first column. What should i use?
'Dim dt As New DataTable
'Dim line As String = Nothing
'Dim i As Integer = 0
''Using sr As StreamReader = File.OpenText("G:\KREZA\petrovac.xls")
'' line = sr.ReadLine
'' Do While line IsNot Nothing
'' Dim data() As String = line.Split(",")
'' If data.Length > 0 Then
'' If i = 0 Then
'' For Each item In data
'' dt.Columns.Add(New DataColumn())
'' Next item
'' i += 1
'' End If
'' Dim row As DataRow = dt.NewRow()
'' row.ItemArray = data
'' dt.Rows.Add(row)
'' End If
'' line = sr.ReadLine
'' Loop
''End Using
'Using sr As StreamReader = File.OpenText("G:\KREZA\petrovac.xls")
' line = sr.ReadLine
' Do While line IsNot Nothing
' Dim data() As String = line.Split(","c)
' If data.Length > 0 Then
' For Each item In data
' dt.Columns.Add(New DataColumn())
' Next item
' Dim row As DataRow = dt.NewRow
' row.ItemArray = data
' dt.Rows.Add(row)
' End If
' line = sr.ReadLine
' Loop
'End Using
'cnparfimerija.Open()
'Using copy As New SqlBulkCopy(cnparfimerija)
' copy.ColumnMappings.Add(0, 0)
' copy.ColumnMappings.Add(1, 1)
' copy.ColumnMappings.Add(2, 2)
' copy.ColumnMappings.Add(3, 3)
' copy.ColumnMappings.Add(4, 4)
' copy.ColumnMappings.Add(5, 5)
' copy.ColumnMappings.Add(6, 6)
' copy.ColumnMappings.Add(7, 7)
' copy.ColumnMappings.Add(8, 8)
' copy.ColumnMappings.Add(9, 9)
' copy.DestinationTableName = "Primer"
' copy.WriteToServer(dt)
'End Using
'cnparfimerija.Close()
Show More