How to divide the class?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
26 views
Guys, there is a class for working with products. Methods of obtaining type data select takes about 10KB of code. But there are methods to create, edit, products. And here they weigh about 20KB. That is, I have to work with the goods they produced a large class of 1200 lines of code. I used to divide into parts, maybe one wrong file to keep everything.
Can I create a class successor ProductModify and make three methods creade, update, delete? Or are there easier ways?
by | 26 views

3 Answers

0 like 0 dislike
There you have it the html is also inside?
And the whole logic of the site?

We should not item to share, and the logic into separate parts, there is clearly not one model is used here and pass in different models and stuff.

Well, apparently the ORM to take, and not pure SQL tons to write.
by
0 like 0 dislike
Partial Class is a Class which can be divided into files
\rwww.tutorialsteacher.com/csharp/csharp-partial-class
by
0 like 0 dislike
By using the partial keyword we can divide the class in c#. To know more about the partial keyword check below articles.

https://www.tutlane.com/tutorial/csharp/csharp-par...
https://www.tutlane.com/tutorial/csharp/csharp-par...
by

Related questions

0 like 0 dislike
3 answers
asked Aug 5, 2019 by phpcoder81
0 like 0 dislike
3 answers
asked Apr 28, 2019 by tmgrom
0 like 0 dislike
4 answers
asked Sep 8, 2019 by phpcoder81
0 like 0 dislike
4 answers
asked Aug 9, 2019 by phpcoder81
0 like 0 dislike
4 answers
asked Jul 17, 2019 by phpcoder81
110,608 questions
257,187 answers
0 comments
40,796 users