Posts
12
Comments
10
Trackbacks
0
ORAPOCO: First Update

A few days ago, I have published the firs Version of ORAPOCO.

In this post I would to notify some changes and features.

Changes

First Change is related to IsPkAttribute. There is no sense to get a bool parameter, by that I removed it.

I have refactorized some methods.

Features

I Have created the SequenceAttribute. This attribute will let the use of Sequence in Oracle, using it’s name.

   1: internal class SequenceAttribute : System.Attribute 
   2: {
   3:     public SequenceAttribute(string sequenceName)
   4:     {
   5:         if (string.IsNullOrWhiteSpace(sequenceName)) throw new Exception("Sequence name is necessary.");
   6:         SequenceName = sequenceName;
   7:     }
   8:  
   9:     public string SequenceName { get; set; }
  10: }

A sample of it:

   1: public class Company
   2: {
   3:     [IsPK()]
   4:     [Sequence("S_Company")]
   5:     public System.Int16 CompanyID {get;set;}       
   6:     public System.String CompanyName {get;set;}       
   7: ///...
   8: }

Downloads:

- GitHub

- Nuget

 

I hope to get news from you. Please Give your FeedBack.

 

Regards!

posted on Wednesday, January 25, 2012 8:21 AM Print
Comments
Gravatar
# re: ORAPOCO: First Update
santa
4/10/2012 8:04 AM
Great blog.
Gravatar
# re: ORAPOCO: First Update
pregunton
12/14/2016 8:14 PM
ORA POCO dead ? not used in your latests projects ?

Post Comment

Title *
Name *
Email
Comment *  
Verification