I need to convert docx files to pdf files.
Or bytes of docx file from a database to pdf file and download it.
There is no free nuget packages to resolve my issue.
But there is one package from python language I can use and it s name is docx2pdf.
Nuget space has IronPython . net package, but this...
Is this possible to rewrite this with linq?
var collection = await db.Clients.Where(element
=> element.ClientTypeId == 1 ||
element.ClientTypeId == 4 ||
element.ClientTypeId == 5 &&...
Hello, guys!
It is not a secret, that we need to filter data on the database side. But, I tried and did not find good solution to do this using IQueryable in my code.
That is why I used some a data materialization syntax in several places, like ToList() .
I would like to filtere on the database...
Hello, I write a query, like
foreach (var deal in dealCollection)
{
foreach (var offer in deal.Offers)
{
if (offer.ClientId == testCurrentUserId)
{
if...
To be short:
Have model:
public class DealsOffersParcelsUnitedDto
{
public Guid? ShifterId { get; set; }
[BsonElement("offers")]
public List<Offer>? OfferCharacteristicsList { get; set; }
public DealStatuses DealStatus { get; set; }
public string...
I have work logic:
var result45 = await _unitOfWork.Deal.UpdateOneAsync(
new BsonDocument("_id", "f9097a32-23a7-4242-b34d-1a6d54c17e14"),
new BsonDocument("$set", new BsonDocument("totalSum", 9999)));
I have nowork logic:
var result45 =...
Hello, I try to refactor this
var collection = new List<ShowOfCurrentEnum>();
foreach (var dealStatus in (DealStatuses[])Enum.GetValues(typeof(DealStatuses)))
{
var showCurrentEnum = new ShowOfCurrentEnum
{
Description...
Hello, I have such code:
var collectionOfClientsDeals = new List<DealMonGoDto>();
foreach (var item in collectionOfDealsOfClient)
{
foreach (var element in item.Offers)
{
if...
Hello, everyone!
I would like to add all cars, that were made by person into a new collection of new models.
using System;
using System.Collections.Generic;
using System.Linq;
namespace JoinListsIntoNewModel
{
public class Cars
{
public int Id { get; set; }
public int...
Hello!
I try to understand Onion
And I just want this code
https://dotnetfiddle.net/rtQ81E
to be classified among different folders in my visual studio
just to use it as an example in my future projects
Could you help me to do it?
And attach a RAR archive of this classified project in your...
Hello everyone!
I need to get only file name wit extension without path
private void button9_Click(object sender, EventArgs e)
{
string rootFolder = @"C:\Users\Anton\Desktop\?#folder";
string pattern = @"\b(ArtId=[0-9]*)\b";
using (StreamWriter sw...
Hello, everyone!!
A have a trouble...
Because I want to apply method searchMask to the selected items by pushing button8.
I dont understand, how to connect them, because I dont know how to get path of files in string rootFolder in searchMask method
Could you help me with my challenge...
Hello everyone!
I have a string pattern
string pattern = @"\b(TeNam=)\b[0-9]*|\b(PlNamOld = )\b|\b(SlsDaoFzg_T::dbUpdate:UPDATE Fzg_T)\b[0-9]*";
In this case \b(TeNam=)\b[0-9]* I need only TeNam= and digits, not TeNam= also - but only TeNam= and digits
In this case \b(PlNamNeu =...
Hello!
My code looks for txt files and prints lines containing the values of regular expressions specified in this code to the console.
I would like to add a condition that allows me to search files for a specific date.
I commented out my attempt..
using System;
using...
Hello
I have a code
And logicaly I want to write string pattern = @"\b(TeNam, Trrr, Tormnew)\b"; to find TeNam or Trrr or Tormnew in a string, but I dont know how to do it syntaxicaly
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using...
Hello, everyone!
I try to write in console only one string, that contains reg text, but my code writes all text from file
Could you help me write my target string in console?
Thanks!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using...
Hello!
I am interested in
1) how to write strings in txt file There are many conditions in code to do so...
2) And my obstacle also is how to write strings with words like "Vas" or "Tim"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.