Click here to Skip to main content
14,450,508 members
   

C#

 
GeneralRe: TCP Hole Punching not Work Pin
DioCarvalho26-Dec-19 13:53
professionalDioCarvalho26-Dec-19 13:53 
QuestionLists basics Pin
_Q12_23-Dec-19 17:46
Member_Q12_23-Dec-19 17:46 
AnswerRe: Lists basics Pin
OriginalGriff23-Dec-19 21:28
communityengineerOriginalGriff23-Dec-19 21:28 
AnswerRe: Lists basics Pin
Gerry Schmitz24-Dec-19 6:04
mveGerry Schmitz24-Dec-19 6:04 
QuestionMongoDB, c# driver, ElemMatch an array within an array Pin
jkirkerx19-Dec-19 11:12
professionaljkirkerx19-Dec-19 11:12 
AnswerRe: MongoDB, c# driver, ElemMatch an array within an array Pin
#realJSOP23-Dec-19 1:43
mva#realJSOP23-Dec-19 1:43 
GeneralRe: MongoDB, c# driver, ElemMatch an array within an array Pin
jkirkerx23-Dec-19 7:42
professionaljkirkerx23-Dec-19 7:42 
AnswerRe: MongoDB, c# driver, ElemMatch an array within an array [solved] Pin
jkirkerx23-Dec-19 8:10
professionaljkirkerx23-Dec-19 8:10 
This actually worked after modifying the document and taking out Hawaii.
I didn't think of it when I posted the first time, but it makes sense now.
I just appended && c.states.Contains(stateCode) to the filter.
I was hoping my model of states would work as like a continuous string of values.
var results = new List<QuotedShipRates>();
var filter1 = Builders<WEBSITE_SHIPSERVICES>.Filter
    .ElemMatch(c => c.Countries, c => c.Abbr == countryCode && c.States.Contains(stateCode));<br />
var shipRates = await _context.WebsiteShipServices.Find(filter1).ToListAsync();                

foreach (var shipRate in shipRates)
{
    results.Add(new QuotedShipRates()
    {
        Name = shipRate.Name,
        Code = shipRate.Code,
        Alias = shipRate.Alias,
        Rate = 5.99M,
        GuaranteedDate = DateTime.Now.AddDays(shipRate.Days_Max),
        Selected = false
    });
}       
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionImage deblur Pin
Member 1318127618-Dec-19 10:48
MemberMember 1318127618-Dec-19 10:48 
AnswerRe: Image deblur Pin
OriginalGriff18-Dec-19 10:53
communityengineerOriginalGriff18-Dec-19 10:53 
AnswerRe: Image deblur Pin
Richard MacCutchan18-Dec-19 22:26
communityengineerRichard MacCutchan18-Dec-19 22:26 
QuestionVFPOLEDB Encoding issue Pin
pepl8016-Dec-19 13:40
Memberpepl8016-Dec-19 13:40 
AnswerRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak16-Dec-19 14:48
mveDave Kreskowiak16-Dec-19 14:48 
GeneralRe: VFPOLEDB Encoding issue Pin
pepl8017-Dec-19 0:32
Memberpepl8017-Dec-19 0:32 
GeneralRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak17-Dec-19 4:03
mveDave Kreskowiak17-Dec-19 4:03 
GeneralRe: VFPOLEDB Encoding issue Pin
Gerry Schmitz17-Dec-19 6:54
mveGerry Schmitz17-Dec-19 6:54 
Questionhow to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 13:08
MemberRohan Varendani16-Dec-19 13:08 
AnswerRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 17:57
MemberMycroft Holmes16-Dec-19 17:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 21:57
MemberRohan Varendani16-Dec-19 21:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 22:31
communityengineerRichard MacCutchan16-Dec-19 22:31 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 22:34
MemberRohan Varendani16-Dec-19 22:34 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 23:00
communityengineerRichard MacCutchan16-Dec-19 23:00 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 23:35
MemberRohan Varendani16-Dec-19 23:35 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 23:41
communityengineerRichard MacCutchan16-Dec-19 23:41 
GeneralRe: how to make a minimalist event manager with c# Pin
OriginalGriff17-Dec-19 0:10
communityengineerOriginalGriff17-Dec-19 0:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.