Is there a way to change the target framework of all the projects of a solution in one fell swoop? Changing the target on 18 projects is a little tedious.
I have the following database schema :
Two tables, books and tags, with n-m relationship.
Books - Tags
We can have for example the book 1, with tags {A,B,C}, and book 2, with tags {A}.
I would like to select the books according to a list of tags.
For example : selected tags list : {A,B}
- book 1
My idea was to use the MINUS SQL function, to subtract book tags list to the selected tags list, and return the book if the list was empty. Unfortunately, this SQL function is not supported by HQL.
Any idea about that ?
Hello all
im looking for good freeware that is not GPL c++ webservices frame work
i have used AXIS2 but it is no good for our needs ,is there any good framework that
can be good and robust like the gSoap for example
I did ask whether this was possible in 2008 which was answered in http://stackoverflow.com/questions/1296840/read-and-step-into-net-framework-source-code.
However my problem is that I am using 2005 and not 2008.
Does anyone know whether this is possible please??
The reason I want to do this is to better understand C# paradigms.
With Java this is possible and I learnt a tremendous amount by being able to read code written by engineers
I'm looking for logging framework for C++ project.
My best shoot was log4cxx, but it seems that it's abandoned project, with development stopped ~4 years ago, with only one update in last 4-5 years.
Anything better that log4cxx?
(log4c & log4cpp are also totally out-of-date)...
I am using hibernate to update 20K products in my database.
As of now I am pulling in the 20K products, looping through them and modifying some properties and then updating the database.
so:
load products
foreach products
session begintransaction
productDao.MakePersistant(p);
session commit();
As of now things are pretty slow compared to your standard jdbc, what can I do to speed things up?
I am sure I am doing something wrong here.
Has anybody used the ATK Framework? It is claimed to be geared toward developing apps for business use. Manipulating data, knowledge bases, etc... This is what I primarily develop (on the side-for my own use). The site hasn't given me a great overview of why it may be better than other frameworks.
What are your thoughts / experiences with this product?
Hi,
UserA and UserB are changing objectA.filedA objectA.filedB respectively and at the same time.
Because they are not changing the same field one might think that there are no overlaps.
Is that true?
or the implementation of pm.makePersistnace() actually override the whole object...
good to know...
Hi everybody,
I am developing with NHibernate for the first time in conjunction with ASP.NET MVC and StructureMap. The CodeCampServer serves as a great example for me. I really like the different concepts which were implemented there and I can learn a lot from it.
In my controllers I use Constructur Dependency Injection to get an instance of the specific repository needed.
My problem is: If I change an attribute of the customer the customer's data is not updated in the database, although Commit() is called on the transaction object (by a HttpModule).
public class AccountsController : Controller
{
private readonly ICustomerRepository repository;
public AccountsController(ICustomerRepository repository)
{
this.repository = repository;
}
public ActionResult Save(Customer customer)
{
Customer customerToUpdate = repository
.GetById(customer.Id);
customerToUpdate.GivenName = "test"; //<-- customer does not get updated in database
return View();
}
}
On the other hand this is working:
public class AccountsController : Controller
{
[LoadCurrentCustomer]
public ActionResult Save(Customer customer)
{
customer.GivenName = "test"; //<-- Customer gets updated
return View();
}
}
public class LoadCurrentCustomer : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
const string parameterName = "Customer";
if (filterContext.ActionParameters.ContainsKey(parameterName))
{
if (filterContext.HttpContext.User.Identity.IsAuthenticated)
{
Customer CurrentCustomer = DependencyResolverFactory
.GetDefault()
.Resolve<IUserSession>()
.GetCurrentUser();
filterContext.ActionParameters[parameterName] = CurrentCustomer;
}
}
base.OnActionExecuting(filterContext);
}
}
public class UserSession : IUserSession
{
private readonly ICustomerRepository repository;
public UserSession(ICustomerRepository customerRepository)
{
repository = customerRepository;
}
public Customer GetCurrentUser()
{
var identity = HttpContext.Current.User.Identity;
if (!identity.IsAuthenticated)
{
return null;
}
Customer customer = repository.GetByEmailAddress(identity.Name);
return customer;
}
}
I also tried to call update on the repository like the following code shows. But this leads to an NHibernateException which says "Illegal attempt to associate a collection with two open sessions". Actually there is only one.
public ActionResult Save(Customer customer)
{
Customer customerToUpdate = repository
.GetById(customer.Id);
customer.GivenName = "test";
repository.Update(customerToUpdate);
return View();
}
Does somebody have an idea why the customer is not updated in the first example but is updated in the second example? Why does NHibernate say that there are two open sessions?
The question I always wanted to ask and was afraid to, actually - what language is .NET Framework written in? I mean library itself.
It seems to me that it was C and C++ mostly. (I hope Jon Skeet is reading this one, it`ll be very interesting to hear what he thinks about it)
Is it possible to develop Web Parts using the 4.0 framework and use them in WSS 3.0? I've searched all over the place and can't find anyone else asking this question which makes me think the answer is an obvious "no".
Hi all ,
I have to send a mail from the struts2 application using the Spring Framework email library how can i do that
any help can be appreciated ..
Thanks
Does anyone know of any node.js style webserver framework for java?
I realized that having nonblocking callback behavior while handling a web request will require deep support at the webserver level. I am interested in node.js, but when I have a web server that ends up persisting data, I would like to take advantage of the static type system that Java offers. However, I want the scalability of non-blocking io.
Hi Folks,
has anybody managed to get Djangos site map framework to run on Google App Engine?
I receive the following exception:
ImproperlyConfigured at /sitemap.xml
You haven't set the DATABASE_ENGINE setting yet.
Request Method: GET
Request URL: http://127.0.0.1:8080/sitemap.xml
Exception Type: ImproperlyConfigured
Exception Value: You haven't set the DATABASE_ENGINE setting yet.
Exception Location: D:\Program Files\Google\google_appengine\lib\django\django\db\backends\dummy\base.py in complain, line 13
I am using Java persistance and there EntityManager class and have it assigned to storage a class object that shall be written to the database. My problem is that I want to write to different databases using the same storage class. My solution to that was to write a StorageManagerfactory that has a Map holding all EntityManagers. The solution looked good until I looked at the databases and realized that all information (undepending of the Map, which gets the correct value) was written to the same database (one of the initialised in the Map).
So my question is:
Can I write to different databases using JPA that is using the same storage class (the class holding the structure of my database)?
Thanks
Is it me or is the documentation for the argotic framework API impossible to find..?
The source is available so surely the documented API should be ..
Anybody know where this is?
Thanks alot,
Hello,
does anyone know how to load contents of a file into a multilined TextBox in net 2.0 compact framework and, after editing save it back to a file (the same or with changed name)?
I'm a newbee in C# programming :(
Greetings
I have a number of database table that looks like this:
EntityId int : 1
Countries1: "1,2,3,4,5"
Countries2: "7,9,10,22"
I would like to have NHibernate load the Country entities identifed as 1,2,3,4,5,7,9 etc. whenever my EntityId is loaded.
The reason for this is that we want to avoid a proliferation of joins, as there are scores of these collections.
I need a language and web framework that is really easy to use, that only has 12 or so commands, that is in one language all the way through (front/middle/back) and takes 15 minutes to master. Something like this:
10 CreateWEBFormAndCreateRequiredDBTablesAndSaveToDatabase("First Name", "Last Name")
20 CreateWEBPageThankingUser()
30 MakeAllWEBPagesPrettyByExaminingWebSitesOnTheInterWebAndMakingADecision()
40 GOTO 10
Oh, and it has to be written in C#
I want to do the following
I have a database table of students, and I want to output each student name in a check box list.
so
checkbox. Student 1
checkbox. Student 2
Where the value of the checkbox is the student's ID.
How can I do that using Symfony?
I want teachers to be able to select one or more checkboxes.
I tried following this tutorial:
http://symfony.com/doc/current/cookbook/form/form_collections.html
and using collections, but I am lost...
I have the following design situation.
I use hibernate search (lucene in the back).
Tha application manages ITEMs which have title, description and tags. These are full text indexed.
On the other hand, we have COLLECTION of ITEMs. The user can create a COLLECTION and add as many ITEMs as she wants. ITEMs can also belong to many COLLECTIONs.
I have a boosted query so that search terms that appear in the tags are more important than in the title, and lastly in the description.
But I need an additional matching criteria: for a given ITEM, it whould rank better if other documents in some COLLECTION where the ITEM belongs, also match the query. This is like to say: the title/tags/description of "fellow" items (i.e. items in some shared collection) make the item rank better.
I was thinking that adding an ITEM to a COLLECTION would add something like "extra tags" to every other ITEM in the collection, being these extra tags the elements to match in the added ITEM.
I feel a more clever solution lucene-wise should exists. Any ideas/pointers are welcome.
Thanks.
Is there any good framework for comparing whole objects?
now i do
assertEquals("[email protected]", obj.email);
assertEquals("5", obj.shop);
if bad email is returned i never get to know if it had the right shop, i would like to get a list of incorrect fields.
I'm trying to run the unit tests from the gflags project, and I'd like
to know how to run them and what unit testing framework it is using to
do this.
I'm using Visual Studio 2005.
I am using hibernate to update 20K products in my database.
As of now I am pulling in the 20K products, looping through them and modifying some properties and then updating the database.
so:
load products
foreach products
session begintransaction
productDao.MakePersistant(p);
session commit();
As of now things are pretty slow compared to your standard jdbc, what can I do to speed things up?
I am sure I am doing something wrong here.