I don't have "Add" in my database methods [closed] - database

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
As I want to add data to my database, I wanted to use "Add" method but there isn't.
Methods to add to database are only "AddObject" and "AddTo". Even if I choose "AddTo", it suggest to me to use "Add" methods which I don't have it.
This is also same for "remove" method
What is the reason that I don't have "Add" in my method collection?
To add my database to VB.NET I use Entity Model Code Generator which makes a file with the name of "Model1.edmx" in Solution Explorer

AddObject is what your looking for. That method allows you to add records to the tables, and they all follow this pattern.
Using db As New model 'or what ever you model is called
Dim obj As tableName = tableName.CreateTableName({params that are not null})
db.tableNames.AddObject(obj)
db.SaveChanges()
End Using

Related

What is the limit of Form recognizer to Compose multiple Custom Models under a single Model [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am not able to find out the correct reference of how much custom models of Form Recognizer I can compose under a single model?. What is the limit for now.
https://learn.microsoft.com/en-us/rest/api/formrecognizer/2.1preview2/compose-custom-models-async/compose-custom-models-async
Many thanks.
With Model Compose, you can compose up to 100 models to a single model ID. When you call Analyze with the composed modelID, Form Recognizer will first classify the form you submitted, choose the best matching model, and then return results for that model.
https://learn.microsoft.com/en-us/azure/cognitive-services/form-recognizer/label-tool?tabs=v2-1

How to fill an array from server answer with async pipes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm new to Angular, and not so new to ASP.NET Core. I'm trying to retrieve data from backend server (ASP.NET Core & SQL Server Express & Dapper ORM). GET request passing valid ([first screen][1]), and now I want to map data from it to HTML view.
So a valid JSON is returned, and I'm trying to pass its values via async pipe. Correct ([second screen][2]). Then why can't I fill an array from other services and other GETs like on [third screen][3] and map them to array too like on [fourth screen][4]?
They're undefined when I'm trying to retrieve data from them like [that][5]. What's the problem and what RxJS expression do I need?
The async pipe will only work on observable sources. The GET request produces an observable, so async works.
If your other services are returning arrays (not arrays wrapped in an observable), async won't work and isn't necessary, anyway.
E.g.
const directArray: string[] = ["this", "that", "other"];
you can use *ngFor="let thing of directarray"
const observableArray: Subject<string[]> = new Subject();
observableArray.next(["this", "that", "other"]);
you can use *ngFor="let thing of observableArray | async"

How to save the selected value from picker component [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I've using autocompleteTF & picker component to select items. When the user select the item somechanges occur.
But if the user exit the app and open it again the selected value were return to its default value. So how to make the app to remember the previous value when opened again?
See this on saving your application state: https://www.codenameone.com/manual/files-storage-networking.html
Since this is one or two values just store it in preferences dynamically. E.g. use:
String value = Prefrences.get("name", null);
value would be null if not set.
Similarly when you have a selection just put a value into preferences under the same name.

How to return a set of urls with more accuracy that returns relevant result, using web scraping? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to extract a bunch of urls from a db (the db contains a large set of urls), when a user searches for a particular keyword, for example "seattle dentist". I understand that the basic approach is to look for the page title, meta description, keywords and body text.
How can I do this with more accuracy that returns relevant result?
For example, I have two websites in question:
seattledentist.com (which is a dentist website and has the title
"seattle dentist")
abcxyz.com/dentist-seattle (a wordpress blog
page that has the word "seattle dentist" in its title)
For me, the first website is relevant and I want to show this site to a user when he searches for "seattle dentist".
The second website is just a blog post that describes the dentistry profession in seattle and is not relevant for the user.
So my question is, what would be a better strategy(algorithm) for filtering out this type of non-relevant urls from a whole bunch of urls?

Why do we call LDAP objects as object classes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm confused why we call objects in LDAP like 'inetorgperson' as ObjectClasses ?
Thanks.
Simply put, in LDAP, object classes are the way to assign attributes to an LDAP entry. Object classes are really just descriptions of what you would expect an entry to "look like" or behave as.
An example (albeit a bit contrived) would be creating an LDAP entry of type 'Animal', perhaps called "cn=rover,ou=Pets,dc=example". As an Animal, it may have certain attributes, like an "age", or "genus", and "species". It also probably has a required "commonName" or "cn" attribute used for naming. If we added the 'Dog' object class to our pet, it may now include additional attributes, like "trick" or "breed" or "licenseNumber".
In your question, 'inetOrgPerson' (see RFC2798) is an object class and a set of attributes associated with an individual who is part of an organization. By adding the 'inetOrgPerson' object class to an employee in a company, you may now define things like their "manager", or their "secretary", "employeeNumber", and others.
This is actually a pretty good link that describes more about LDAP Schemas, Object Classes, and Attributes: http://www.zytrax.com/books/ldap/ch3/
I agree with jgnagy.
Also, objectClasses are unsubstantiated and LDAP entries are substantiated collections of objectClasses.
-jim

Resources